Avoiding deadlock when multiple workers try to update at the same time #412
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.
Fixes :
Feb 13 02:34:30 curio-c2a curio[2434472]: {"level":"error","ts":"2025-02-13T02:34:30.469Z","logger":"curio/message","caller":"message/watch.go:96","msg":"failed to assign pending messages: ERROR: Errors occurred while reaching out to the tablet servers: . Errors from tablet servers: [Operation expired (yb/docdb/deadlock_detector.cc:425): Transaction 7557ba61-5775-4bf4-b5ec-109e1413c497 aborted due to a deadlock: <0>00282b48-c1b3-4206-bab7-de9102c8acf6-><0>7557ba61-5775-4bf4-b5ec-109e1413c497->: kDeadlock (transaction error 6), Operation failed. Try again (yb/docdb/conflict_resolution.cc:92): 7557ba61-5775-4bf4-b5ec-109e1413c497 conflicts with committed transaction: 00282b48-c1b3-4206-bab7-de9102c8acf6 (transaction error 3)] (SQLSTATE XX000)"}