apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vrozov <...@git.apache.org>
Subject [GitHub] apex-malhar pull request #333: Fix for APEXMALHAR-2069: moved creation of sc...
Date Wed, 06 Jul 2016 15:26:26 GMT
Github user vrozov commented on a diff in the pull request:

    --- Diff: library/src/main/java/com/datatorrent/lib/io/fs/FileSplitterInput.java ---
    @@ -80,29 +80,29 @@
       private WindowDataManager windowDataManager;
    -  @NotNull
    -  protected final transient LinkedList<ScannedFileInfo> currentWindowRecoveryState;
    +  protected transient LinkedList<ScannedFileInfo> currentWindowRecoveryState;
       private TimeBasedDirectoryScanner scanner;
    -  @NotNull
       private Map<String, Map<String, Long>> referenceTimes;
       private transient long sleepMillis;
       public FileSplitterInput()
    -    currentWindowRecoveryState = Lists.newLinkedList();
         windowDataManager = new WindowDataManager.NoopWindowDataManager();
    -    referenceTimes = Maps.newHashMap();
         scanner = new TimeBasedDirectoryScanner();
       public void setup(Context.OperatorContext context)
    +    currentWindowRecoveryState = Lists.newLinkedList();
    +    referenceTimes = Maps.newHashMap();
    --- End diff --
    `referenceTimes` is not marked as transient, so it will be stored during checkpointing
and restored back from a checkpoint in case of failover. It is necessary to check referenceTimes
for `null`. 

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.

View raw message