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/05/26 10:56:16 UTC

[GitHub] [pulsar] jiazhai commented on a change in pull request #4372: Fix bug of Key_Shared Ordering

jiazhai commented on a change in pull request #4372: Fix bug of Key_Shared Ordering
URL: https://github.com/apache/pulsar/pull/4372#discussion_r287592478
 
 

 ##########
 File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumers.java
 ##########
 @@ -409,15 +410,14 @@ public synchronized void readEntriesComplete(List<Entry> entries, Object ctx) {
         }
 
         sendMessagesToConsumers(readType, entries);
-
-        readMoreEntries();
     }
 
     protected void sendMessagesToConsumers(ReadType readType, List<Entry> entries) {
         int start = 0;
         int entriesToDispatch = entries.size();
         long totalMessagesSent = 0;
         long totalBytesSent = 0;
+        AtomicInteger messagesToConsumer = new AtomicInteger(entries.size());
 
 Review comment:
   why do we need change this file?  method `sendMessagesToConsumers` got override in  `PersistentStickyKeyDispatcherMultipleConsumers` right?

----------------------------------------------------------------
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