You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2020/02/03 23:52:05 UTC
[GitHub] [helix] alirezazamani commented on a change in pull request #705:
Add workflow context garbage collection
alirezazamani commented on a change in pull request #705: Add workflow context garbage collection
URL: https://github.com/apache/helix/pull/705#discussion_r373732379
##########
File path: helix-core/src/main/java/org/apache/helix/task/TaskUtil.java
##########
@@ -1036,6 +1037,46 @@ public static void purgeExpiredJobs(String workflow, WorkflowConfig workflowConf
setNextJobPurgeTime(workflow, currentTime, purgeInterval, rebalanceScheduler, manager);
}
+ /**
+ * The function that loops through the all existed workflow contexts and removes IdealState and
+ * Workflow Context if Workflow Config is missing.
+ * @param dataProvider
+ * @param manager
+ */
+ public static void workflowGarbageCollection(WorkflowControllerDataProvider dataProvider,
Review comment:
Let's consider two scenarios:
- Case 1 where workflow config has been deleted but workflow context and IS have not been removed. In this case this PR addresses this scenario and deletes both of them. Note that in this PR context won't be removed unless IS is removed. If IS has not been successfully removed, we will try to delete it again in next pipeline.
- Case 2 where workflow config and context have been removed and IS has not been removed. I am arguing that this is not possible since context is always the last one that controller removes.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org