TakaHiR07 commented on PR #20053: URL: https://github.com/apache/pulsar/pull/20053#issuecomment-1581965065
> TxnStats is written by a single thread, so the update stats thread should also be single-threaded. I don't understand where the concurrency problem occurs. Can you point it out? TxnStatus is appended to txnLog by single thread, but the operation after thenAccept is executed in other thread. So it cause the concurrency problem. https://github.com/apache/pulsar/blob/ac46e2e4fc48dff74233623afa3635ef5285e34d/pulsar-transaction/coordinator/src/main/java/org/apache/pulsar/transaction/coordinator/impl/MLTransactionMetadataStore.java#L399 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
