narendly commented on a change in pull request #497: Fix job purge logic for
job without config
URL: https://github.com/apache/helix/pull/497#discussion_r331668446
##########
File path: helix-core/src/main/java/org/apache/helix/task/TaskDriver.java
##########
@@ -393,6 +393,13 @@ public void enqueueJobs(final String queue, final
List<String> jobs,
if (!TaskUtil.removeJobsFromWorkflow(_accessor, _propertyStore, queue,
expiredJobs, true)) {
LOG.warn("Failed to clean up expired and completed jobs from queue "
+ queue);
}
+
+ Set<String> misconfiguredJobs =
+ TaskUtil.getMisconfiguredJobs(_accessor, workflowConfig,
workflowContext);
+ if (!TaskUtil.removeJobsFromWorkflow(_accessor, _propertyStore, queue,
misconfiguredJobs, true)) {
+ LOG.warn("Failed to clean up misconfiguredJobs jobs from queue " +
queue);
Review comment:
Use {}.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]