[MRESOLVER-321] Make collection and visiting interruptable#380
Merged
cstamas merged 6 commits intoapache:masterfrom Nov 27, 2023
Merged
[MRESOLVER-321] Make collection and visiting interruptable#380cstamas merged 6 commits intoapache:masterfrom
cstamas merged 6 commits intoapache:masterfrom
Conversation
Currently the two collection are not interruptable, does not sense interruption directly, only by some side-effect like IO. Moreover, the BF new collector may enter a "busy loop" as we seen, true, it was due bug, but nothing prevents us to have more bugs. Make main loop in both collector detect thread interruption and use global (per-collection) Args to carry state of the, interruption effectively the whole ST or MT collection. --- https://issues.apache.org/jira/browse/MRESOLVER-321
flag, just interrupt the work, and let that be handled somewhere else (ie. collector)
gnodet
requested changes
Nov 27, 2023
gnodet
approved these changes
Nov 27, 2023
|
Resolve #995 |
1 similar comment
|
Resolve #995 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently the two collector implementations are not interrupt-able, do not sense interruption directly, only by some side-effect like IO. Moreover, the BF new collector may enter a "busy loop" as we seen (it was due bug, but nothing prevents us to have more bugs). Make main loop in both collector detect thread interruption and use global (per-collection) Args to carry state of the, interruption effectively the whole ST or MT collection.
Same stands for dependency visitor: it may also enter busy loop in case of cycles, hence, it should be made also interrupt-able. Visitor OTOH should not reset the interrupted flag, it should just stop when it is set, and let the flag be handled at higher level (for example in collector).
https://issues.apache.org/jira/browse/MRESOLVER-321