Jason918 commented on a change in pull request #14641:
URL: https://github.com/apache/pulsar/pull/14641#discussion_r835701277
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractDispatcherMultipleConsumers.java
##########
@@ -113,32 +114,36 @@ protected void cancelPendingRead() {}
*
* @return nextAvailableConsumer
*/
- public Consumer getNextConsumer() {
+ public synchronized Consumer getNextConsumer() {
Review comment:
If we add synchronized here, then previous change is not necessary.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]