Github user hmcl commented on a diff in the pull request:

    https://github.com/apache/storm/pull/2104#discussion_r115305869
  
    --- Diff: 
external/storm-kafka-client/src/main/java/org/apache/storm/kafka/spout/internal/OffsetManager.java
 ---
    @@ -68,13 +74,34 @@ public OffsetAndMetadata findNextCommitOffset() {
             KafkaSpoutMessageId nextCommitMsg = null;     // this is a 
convenience variable to make it faster to create OffsetAndMetadata
     
             for (KafkaSpoutMessageId currAckedMsg : ackedMsgs) {  // 
complexity is that of a linear scan on a TreeMap
    -            if ((currOffset = currAckedMsg.offset()) == nextCommitOffset + 
1) {            // found the next offset to commit
    +            currOffset = currAckedMsg.offset();
    --- End diff --
    
    why this change when the code is exactly the same ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to