Skip to content

Handle potential race condition when getting busy resources in UiControllerImpl.#2484

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
piper_864322733
Open

Handle potential race condition when getting busy resources in UiControllerImpl.#2484
copybara-service[bot] wants to merge 1 commit into
mainfrom
piper_864322733

Conversation

@copybara-service
Copy link
Copy Markdown

Handle potential race condition when getting busy resources in UiControllerImpl.

Adds a new IdleCondition, POSSIBLE_RACE_CONDITION_DETECTED, to address a scenario where IdlingResourceRegistry#getBusyResources() might return null during the DYNAMIC_TASKS_HAVE_IDLED check. When null is detected, a signal is sent, and the system loops until the race has been handled / exception is thrown.

…rollerImpl.

Adds a new IdleCondition, POSSIBLE_RACE_CONDITION_DETECTED, to address a scenario where IdlingResourceRegistry#getBusyResources() might return null during the DYNAMIC_TASKS_HAVE_IDLED check. When null is detected, a signal is sent, and the system loops until the race has been handled / exception is thrown.

PiperOrigin-RevId: 864322733
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 this pull request may close these issues.

1 participant