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 2022/09/15 22:03:26 UTC

[GitHub] [pulsar] syhily commented on issue #17679: [Bug] Can't consume messages by using a subset of sticky key hash range

syhily commented on issue #17679:
URL: https://github.com/apache/pulsar/issues/17679#issuecomment-1248681196

   @eolivelli I got the reproduce test code passed after comment the code you added in #14014.
   
   ```
           for (Entry entry : entries) {
               int stickyKeyHash = getStickyKeyHash(entry);
               Consumer c = selector.select(stickyKeyHash);
               if (c != null) {
                   groupedEntries.computeIfAbsent(c, k -> new ArrayList<>()).add(entry);
   -                consumerStickyKeyHashesMap.computeIfAbsent(c, k -> new HashSet<>()).add(stickyKeyHash);
               } else {
                   addMessageToReplay(entry.getLedgerId(), entry.getEntryId(), stickyKeyHash);
                   entry.release();
               }
           }
   ```


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org