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 2019/01/23 18:36:31 UTC

[GitHub] rdhabalia opened a new pull request #3411: Fix race condition: broker not scheduling read for active consumer

rdhabalia opened a new pull request #3411: Fix race condition: broker not scheduling read for active consumer
URL: https://github.com/apache/pulsar/pull/3411
 
 
   ### Motivation
   
   Right now, `readOnActiveConsumerTask` is not thread-safe and it's being updated into different thread.  and one thread updates it to null but at the same time new active consumer gets connected on second thread then second thread will find `readOnActiveConsumerTask` non-null which avoids read-scheduling for new active consumer.
   
   ### Result
   
   It will fix possible race condition when multiple consumers try to connect to fail-over subscription.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services