Repository navigation
Conversation
lhotari
left a comment
There was a problem hiding this comment.
Thanks for the contribution @nikam14 .
Unfortunately fixing these issues isn't simple. This PR might be doing the right things, but without proper concurrency tests, it's hard to ensure that adding synchronized methods doesn't cause regressions such as dead-locks. The lack of tests isn't caused by this PR, but to get confidence for merging such PRs, it would have to be resolved.
Just viewing the code won't be a sufficient review.
|
Thanks for the explanation @lhotari |
|
Thanks @nikam14, and sorry this sat so long. Master has changed a lot since this PR: snapshot recovery was rewritten in #26335, and every read and write of |
Fixes #22116
Motivation
Fix SnapshotSegmentAbortedTxnProcessorImpl thread safety issue
Modifications
volatilekeyword to unsealedtxnIds variable.synchronizedkeyword for data consistencyVerifying this change
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: