Skip to content

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

Merged
copybara-service[bot] merged 1 commit into
mainfrom
piper_864322733
May 21, 2026
Merged

Handle potential race condition when getting busy resources in UiControllerImpl.#2484
copybara-service[bot] merged 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.

@copybara-service copybara-service Bot force-pushed the piper_864322733 branch 3 times, most recently from ff28670 to 54c8910 Compare May 21, 2026 19:15
…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: 919193080
@copybara-service copybara-service Bot merged commit d1c8377 into main May 21, 2026
@copybara-service copybara-service Bot deleted the piper_864322733 branch May 21, 2026 19:26
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