Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcurrentModificationException for the TaskGarbageCollectionStage #738

Closed
alirezazamani opened this issue Feb 10, 2020 · 0 comments · Fixed by #741
Closed

ConcurrentModificationException for the TaskGarbageCollectionStage #738

alirezazamani opened this issue Feb 10, 2020 · 0 comments · Fixed by #741

Comments

@alirezazamani
Copy link

In the async TaskGarbageCollectionStage, since the workflow context can be changes in other threads (main pipeline), while looping through all of the contexts we might get the exception below:

377558 [TaskJobPurgeWorker-CLUSTER_TestTaskRebalancerParallel] ERROR org.apache.helix.controller.pipeline.AbstractAsyncBaseStage - Failed to process TASK::TaskGarbageCollectionStage asynchronously
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1442)
at java.util.HashMap$EntryIterator.next(HashMap.java:1476)
at java.util.HashMap$EntryIterator.next(HashMap.java:1474)
at org.apache.helix.task.TaskUtil.workflowGarbageCollection(TaskUtil.java:1054)
at org.apache.helix.controller.stages.TaskGarbageCollectionStage.execute(TaskGarbageCollectionStage.java:55)
at org.apache.helix.controller.pipeline.AbstractAsyncBaseStage$1.run(AbstractAsyncBaseStage.java:47)
at org.apache.helix.controller.GenericHelixController$3.handleEvent(GenericHelixController.java:605)
at org.apache.helix.controller.GenericHelixController$3.handleEvent(GenericHelixController.java:601)
at org.apache.helix.common.DedupEventProcessor.run(DedupEventProcessor.java:42)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant