apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilooner <...@git.apache.org>
Subject [GitHub] incubator-apex-malhar pull request: APEXMALHAR-2073 fixed the race...
Date Tue, 17 May 2016 04:47:57 GMT
Github user ilooner commented on a diff in the pull request:

    https://github.com/apache/incubator-apex-malhar/pull/276#discussion_r63463982
  
    --- Diff: library/src/main/java/org/apache/apex/malhar/lib/state/managed/IncrementalCheckpointManager.java
---
    @@ -188,8 +190,12 @@ protected void committed(int operatorId, long windowId) throws IOException,
Inte
       {
         LOG.debug("data manager committed {}", windowId);
         for (Long currentWindow : savedWindows.keySet()) {
    +      if (currentWindow <= smallestPendingWindow) {
    +        continue;
    +      }
           if (currentWindow <= windowId) {
    -        LOG.debug("to transfer {}", windowId);
    +        LOG.debug("to transfer {}", currentWindow);
    +        smallestPendingWindow = currentWindow;
    --- End diff --
    
    can the name be changed of smallestPendingWindow. It can be slightly misleading.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message