You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/01/06 02:51:57 UTC

[GitHub] [pulsar] Demogorgon314 opened a new pull request #13634: [pulsar-client] Fix the wrong multi-topic has message available behavior

Demogorgon314 opened a new pull request #13634:
URL: https://github.com/apache/pulsar/pull/13634


   Fixes #13605
   
   ### Motivation
   
   Currently, the multiTopicReader `hasMessageAvailable` might get the wrong result, we must check `numMessagesInQueue() > 0` again after finish all consumer `hasMessageAvaliableAsync` future, bacause some message might already in `MultiTopicsConsumerImpl#incomingMessages`. 
   
   ### Modifications
   
   * Fix the wrong multi-topic has message available behavior.
   * Use `reader.readNextAsync()` instead of block method `reader.readNext()`.
   * Reduce the units test running time by changing `MultiTopicsReaderTest` to use `@BeforeClass`, `@AfterClass`.
   
   ### Documentation
   
   Need to update docs? 
   
   - [x] `no-need-doc` 
     
    This is a bug fix, no need doc.
   
   
   


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



[GitHub] [pulsar] eolivelli commented on pull request #13634: [pulsar-client] Fix the wrong multi-topic has message available behavior

Posted by GitBox <gi...@apache.org>.
eolivelli commented on pull request #13634:
URL: https://github.com/apache/pulsar/pull/13634#issuecomment-1008362418


   @codelipenghui @lhotari @merlimat @codelipenghui @michaeljmarshall  @dlg99 PTAL


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



[GitHub] [pulsar] Demogorgon314 commented on pull request #13634: [pulsar-client] Fix the wrong multi-topic has message available behavior

Posted by GitBox <gi...@apache.org>.
Demogorgon314 commented on pull request #13634:
URL: https://github.com/apache/pulsar/pull/13634#issuecomment-1007084216


   Look like the flaky test is not relevant to this PR. If I understand correctly. 
   @codelipenghui Can you help me look at the CI?


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



[GitHub] [pulsar] codelipenghui merged pull request #13634: [pulsar-client] Fix the wrong multi-topic has message available behavior

Posted by GitBox <gi...@apache.org>.
codelipenghui merged pull request #13634:
URL: https://github.com/apache/pulsar/pull/13634


   


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



[GitHub] [pulsar] Demogorgon314 commented on pull request #13634: [pulsar-client] Fix the wrong multi-topic has message available behavior

Posted by GitBox <gi...@apache.org>.
Demogorgon314 commented on pull request #13634:
URL: https://github.com/apache/pulsar/pull/13634#issuecomment-1007052489


   /pulsarbot rerun-failure-checks


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



[GitHub] [pulsar] Demogorgon314 commented on pull request #13634: [pulsar-client] Fix the wrong multi-topic has message available behavior

Posted by GitBox <gi...@apache.org>.
Demogorgon314 commented on pull request #13634:
URL: https://github.com/apache/pulsar/pull/13634#issuecomment-1006273189


   /pulsarbot rerun-failure-checks


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



[GitHub] [pulsar] Demogorgon314 commented on pull request #13634: [pulsar-client] Fix the wrong multi-topic has message available behavior

Posted by GitBox <gi...@apache.org>.
Demogorgon314 commented on pull request #13634:
URL: https://github.com/apache/pulsar/pull/13634#issuecomment-1006362760


   /pulsarbot rerun-failure-checks


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



[GitHub] [pulsar] Demogorgon314 commented on pull request #13634: [pulsar-client] Fix the wrong multi-topic has message available behavior

Posted by GitBox <gi...@apache.org>.
Demogorgon314 commented on pull request #13634:
URL: https://github.com/apache/pulsar/pull/13634#issuecomment-1007979025


   /pulsarbot rerun-failure-checks


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



[GitHub] [pulsar] Demogorgon314 commented on pull request #13634: [pulsar-client] Fix the wrong multi-topic has message available behavior

Posted by GitBox <gi...@apache.org>.
Demogorgon314 commented on pull request #13634:
URL: https://github.com/apache/pulsar/pull/13634#issuecomment-1006404982


   /pulsarbot rerun-failure-checks


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