SeekableStreamSupervisor: Don't await task futures in workerExec.#17403
Merged
gianm merged 1 commit intoapache:masterfrom Oct 24, 2024
Merged
SeekableStreamSupervisor: Don't await task futures in workerExec.#17403gianm merged 1 commit intoapache:masterfrom
gianm merged 1 commit intoapache:masterfrom
Conversation
Following apache#17394, workerExec can get deadlocked with itself, because it waits for task futures and is also used as the connectExec for the task client. To fix this, we need to never await task futures in the workerExec. There are two specific changes: in "verifyAndMergeCheckpoints" and "checkpointTaskGroup", two "coalesceAndAwait" calls that formerly occurred in workerExec are replaced with Futures.transform (using a callback in workerExec). Because this adjustment removes a source of blocking, it may also improve supervisor responsiveness for high task counts. This is not the primary goal, however. The primary goal is to fix the bug introduced by apache#17394.
Contributor
Author
|
Viewing this diff with whitespace hidden better illustrates what the changes are. Most of the lines changed are only indentation. |
clintropolis
approved these changes
Oct 23, 2024
georgew5656
approved these changes
Oct 24, 2024
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.
Following #17394,
workerExeccan get deadlocked with itself, because it waits for task futures and is also used as theconnectExecfor the task client. To fix this, we need to never await task futures in theworkerExec.There are two specific changes: in
verifyAndMergeCheckpointsandcheckpointTaskGroup, twocoalesceAndAwaitcalls that formerly occurred inworkerExecare replaced withFutures.transform(using a callback inworkerExecinstead).Because this adjustment removes a source of blocking, it may also improve supervisor responsiveness for high task counts. This is not the primary goal, however. The primary goal is to fix the bug introduced by #17394.