liangyepianzhou edited a comment on issue #13792:
URL: https://github.com/apache/pulsar/issues/13792#issuecomment-1017167591


   ### Problem Description
   1. TransactionBufferHandlerImpl sends EndTxn request, at this time topic is 
unloading.
   2. The default timeout is 3 seconds, and a timeout exception will be 
returned after three seconds.
   3. The response is received later, but the op has been removed by timeout.
   ```java
   2022-01-20T14:17:54,167+0800 [pulsar-io-30-3] DEBUG 
org.apache.pulsar.broker.transaction.buffer.impl.TransactionBufferHandlerImpl - 
Got end txn on topic response for timeout 14 - 3006 
   ```
   4. TransactionMetadataStoreService receives RequestTimeoutException, which 
is a retry exception, so TC will use transactionOpRetryTimer to try again. But 
at the same time this RequestTimeoutException will be returned.
   ### Solution
   Use the same CompletelyFuture to retry without returning a timeout exception
   
   https://github.com/apache/pulsar/pull/13828


-- 
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-unsubscr...@pulsar.apache.org

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


Reply via email to