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/06/26 04:03:33 UTC

[GitHub] [pulsar] MarvinCai opened a new pull request #4604: Update logic for picking active consumer for failover subscription on non-partitioned topic.

MarvinCai opened a new pull request #4604: Update logic for picking active consumer for failover subscription on non-partitioned topic.
URL: https://github.com/apache/pulsar/pull/4604
 
 
   fix #1267
   Instead of sorting the consumers based on priority level and consumer name then pick a active consumer, which could cause subscription getting into a flaky state, where the "active" consumer joins and leaves, no consumer is actually elected as "active" and consuming the messages.
   
   Fix logic to always pick the first consumer in the consumer list without sorting consumers. So consumers will be picked as acive consumer based on the order of their subscription.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services