pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] rdhabalia opened a new pull request #3411: Fix race condition: broker not scheduling read for active consumer
Date Wed, 23 Jan 2019 18:36:31 GMT
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

Mime
View raw message