| 238 | } |
| 239 | |
| 240 | static Status VerifyExecNodeDebugAction(const TDebugOptions& debug_options) { |
| 241 | if (debug_options.action == TDebugAction::DELAY) { |
| 242 | int64_t sleep_duration_ms; |
| 243 | RETURN_IF_ERROR(ExecNode::ParseAndValidateSleepDuration( |
| 244 | debug_options.action_param, &sleep_duration_ms)); |
| 245 | } |
| 246 | return Status::OK(); |
| 247 | } |
| 248 | |
| 249 | // Note that we allow numerical values for boolean and enum options. This is because |
| 250 | // TQueryOptionsToMap() will output the numerical values, and we need to parse its output |