You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "merlimat (via GitHub)" <gi...@apache.org> on 2026/10/22 23:00:30 UTC

Re: [PR] [fix][txn] Fix SnapshotSegmentAbortedTxnProcessorImpl thread safety issue [pulsar]

merlimat commented on PR #22384:
URL: https://github.com/apache/pulsar/pull/22384#issuecomment-6353197079

   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 `aborts` now runs under the `TopicTransactionBuffer` monitor. The locks added here are on different monitors that no writer takes, so they wouldn't close the remaining gaps. Those gaps are `getStats` → `generateSnapshotStats` running without that lock, and `updateIndexWhenExecuteTheLatestTask` copying `unsealedTxnIds` on the writer thread. I'm closing this as part of the backlog triage and will add those details to #22116, which stays open. A fix along those lines, with a concurrency test, would be very welcome.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org