pulsar
pulsar copied to clipboard
[fix][txn] Fix SnapshotSegmentAbortedTxnProcessorImpl thread safety issue
Fixes #22116
Motivation
Fix SnapshotSegmentAbortedTxnProcessorImpl thread safety issue
Modifications
- Added
volatilekeyword to unsealedtxnIds variable. - Same resource were accessed at same line , so modified it.
- Added
synchronizedkeyword for data consistency
Verifying this change
- [x] Make sure that the change passes the CI checks.
Documentation
- [ ]
doc - [ ]
doc-required - [x]
doc-not-needed - [ ]
doc-complete
Matching PR in forked repository
PR in forked repository:
Thanks for the explanation @lhotari