Anonymitaet commented on a change in pull request #7136:
URL: https://github.com/apache/pulsar/pull/7136#discussion_r433895120
##########
File path: site2/docs/concepts-messaging.md
##########
@@ -207,11 +207,11 @@ In the diagram below, only **Consumer A-0** is allowed to
consume messages.
### Failover
-In *failover* mode, multiple consumers can attach to the same subscription.
The consumers will be lexically sorted by the consumer's name and the first
consumer will initially be the only one receiving messages. This consumer is
called the *master consumer*.
+In *failover* mode, multiple consumers can attach to the same subscription. In
failover mode, the broker selects the master consumer based on the priority
level and the lexicographical sorting of a consumer name. If two consumers have
the identical priority level, the broker selects the master consumer based on
the lexicographical sorting. If these two consumers have different priority
levels, the broker selects the consumer with higher priority level as the
master consumer. The master consumer is initially the only one receiving
messages. When the master consumer disconnects, all (non-acknowledged and
subsequent) messages are delivered to the next consumer in line.
Review comment:
```suggestion
In *failover* mode, multiple consumers can attach to the same subscription.
In failover mode, the broker selects the master consumer based on the priority
level and the lexicographical sorting of a consumer name. If two consumers have
an identical priority level, the broker selects the master consumer based on
the lexicographical sorting. If these two consumers have different priority
levels, the broker selects the consumer with a higher priority level as the
master consumer. The master consumer is initially the only one receiving
messages. When the master consumer disconnects, all (non-acknowledged and
subsequent) messages are delivered to the next consumer in line.
```
----------------------------------------------------------------
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:
[email protected]