kaisun2000 edited a comment on issue #1404:
URL: https://github.com/apache/helix/issues/1404#issuecomment-699564717
Add even more information to dump job ctx and job cfg with wf cfg
```
if (ctx == null || !allowedStates.contains(ctx.getJobState(jobName))) {
WorkflowConfig wfcfg = getWorkflowConfig(workflowName);
JobConfig jobConfig = getJobConfig(jobName);
JobContext jbCtx = getJobContext(jobName);
throw new HelixException(
String.format("Workflow \"%s\" context is null or job \"%s\" is
not in states: %s; ctx is %s, jobState is %s, wf cfg %s, jobcfg %s, jbctx %s",
workflowName, jobName, allowedStates,
ctx == null ? "null" : ctx, ctx != null ?
ctx.getJobState(jobName) : "null",
wfcfg, jobConfig, jbCtx));
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]