You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "thetumbled (via GitHub)" <gi...@apache.org> on 2024/02/05 04:16:12 UTC

Re: [PR] [cleanup] [broker] fix return value of TransactionTimeoutTrackerImpl#addTransaction [pulsar]

thetumbled commented on PR #22020:
URL: https://github.com/apache/pulsar/pull/22020#issuecomment-1926202018

   > > According to the method signature, we should return true when the transaction is added to the tracker.
   > > ```
   > >     /**
   > >      * Add a txnID to the tracker.
   > >      *
   > >      * @param sequenced
   > >      *            the sequenced
   > >      * @param timeout
   > >      *            the absolute timestamp for transaction timeout
   > >      *
   > >      * @return true if the transaction was added to the tracker or false if had timed out
   > >      */
   > >     CompletableFuture<Boolean> addTransaction(long sequenceId, long timeout);
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > But actually, we return false for any cases.
   > 
   > You changed the definition to `void addTransation()`, it is not matches with the Motivation, please correct it.
   
   Updated, thanks.


-- 
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