liangyepianzhou commented on PR #20053:
URL: https://github.com/apache/pulsar/pull/20053#issuecomment-1580326909
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?
```
CompletableFuture
.runAsync(
() -> internalAsyncAddData(data, callback, ctx),
singleThreadExecutorForWrite)
.exceptionally(e -> {
log.warn("Execute 'internalAsyncAddData' fail", e);
return null;
});
```
--
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]