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

    https://github.com/apache/storm/pull/2104#discussion_r115406299
  
    --- Diff: 
external/storm-kafka-client/src/main/java/org/apache/storm/kafka/spout/internal/OffsetManager.java
 ---
    @@ -49,10 +51,14 @@ public OffsetManager(TopicPartition tp, long 
initialFetchOffset) {
             LOG.debug("Instantiated {}", this);
         }
     
    -    public void add(KafkaSpoutMessageId msgId) {          // O(Log N)
    +    public void ack(KafkaSpoutMessageId msgId) {          // O(Log N)
    --- End diff --
    
    The OffsetManager now maintains acked as well as emitted set. As @srdo  
pointed **add** will be a little ambiguous.
    I can make them more verbose if needed. Something like **addAck** and 
**addEmit**


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