Skip to content

Smart integration: fix parallel object class discovery coordination#590

Open
johnstone3 wants to merge 1 commit intomasterfrom
vaia/wp1/fix-parallel-discovery-objectclass-details
Open

Smart integration: fix parallel object class discovery coordination#590
johnstone3 wants to merge 1 commit intomasterfrom
vaia/wp1/fix-parallel-discovery-objectclass-details

Conversation

@johnstone3
Copy link
Copy Markdown

Add waitForSiblingByPolling() so that parallel discovery tasks always finish together - the task that completes first signals its own SUCCESS via activity resultStatus and waits for siblings; on sibling failure it returns FATAL_ERROR, on sibling success it returns success. Refactor suspendSiblings() and waitForSiblingByPolling() to use getSiblingActivityTypes() defined per handler instead of passing the set as a parameter. Fix Javadoc to correctly state SystemException is thrown when task is asked to stop.

Add waitForSiblingByPolling() so that parallel discovery tasks always
finish together - the task that completes first signals its own SUCCESS
via activity resultStatus and waits for siblings; on sibling failure it
returns FATAL_ERROR, on sibling success it returns success.
Refactor suspendSiblings() and waitForSiblingByPolling() to use
getSiblingActivityTypes() defined per handler instead of passing the set
as a parameter. Fix Javadoc to correctly state SystemException is thrown
when task is asked to stop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant