Skip to content

Avoid deadlock merge requests order#241

Draft
Francesco Capponi (FreCap) wants to merge 10 commits into
confluentinc:masterfrom
FreCap:avoid-deadlock-merge-requests-order
Draft

Avoid deadlock merge requests order#241
Francesco Capponi (FreCap) wants to merge 10 commits into
confluentinc:masterfrom
FreCap:avoid-deadlock-merge-requests-order

Conversation

@FreCap
Copy link
Copy Markdown

@FreCap Francesco Capponi (FreCap) commented Sep 15, 2022

If there is an exception within the executor, and one step could not be completed, will cause deadlock.

Even if there are way more topics than threads (like 5000 topics, 10 threads), chances are that there could be an ordering problem, and cause a deadlock (experiencing constantly)

fcapponi added 2 commits September 14, 2022 19:33
The existing code implies that the executor will always run the queries in order, but this is not a hard guarantee of the executor. This can cause newer merge batches getting in front of merge batches, and locking the thread, which causes a deadlock
The existing code implies that the executor will always run the queries in order, but this is not a hard guarantee of the executor. This can cause newer merge batches getting in front of merge batches, and locking the thread, which causes a deadlock
@FreCap Francesco Capponi (FreCap) requested a review from a team as a code owner September 15, 2022 00:27
The existing code implies that the executor will always run the queries in order, but this is not a hard guarantee of the executor. This can cause newer merge batches getting in front of merge batches, and locking the thread, which causes a deadlock
@FreCap Francesco Capponi (FreCap) marked this pull request as draft September 15, 2022 02:15
@FreCap Francesco Capponi (FreCap) force-pushed the avoid-deadlock-merge-requests-order branch from c752bc5 to ae09321 Compare September 15, 2022 02:23
@FreCap Francesco Capponi (FreCap) force-pushed the avoid-deadlock-merge-requests-order branch 2 times, most recently from f09648c to 9d3ea4b Compare September 15, 2022 02:32
@FreCap Francesco Capponi (FreCap) force-pushed the avoid-deadlock-merge-requests-order branch 2 times, most recently from ec48eb7 to fb7a5c7 Compare September 15, 2022 15:10
fcapponi added 3 commits September 15, 2022 13:24
* Avoid deadlock for wrong ordering execution of merge queries.
The existing code implies that the executor will always run the queries in order, but this is not a hard guarantee of the executor. This can cause newer merge batches getting in front of merge batches, and locking the thread, which causes a deadlock

Co-authored-by: fcapponi <francesco.capponi@worldquant.com>
* Avoid deadlock for wrong ordering execution of merge queries.
The existing code implies that the executor will always run the queries in order, but this is not a hard guarantee of the executor. This can cause newer merge batches getting in front of merge batches, and locking the thread, which causes a deadlock

Co-authored-by: fcapponi <francesco.capponi@worldquant.com>
@FreCap
Copy link
Copy Markdown
Author

I've completed this MR locally, happy to share it if anyone interested (it needs some work since my branch is diverting a little bit)

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