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

    https://github.com/apache/apex-malhar/pull/334#discussion_r69860038
  
    --- Diff: 
library/src/main/java/org/apache/apex/malhar/lib/state/managed/AbstractManagedStateImpl.java
 ---
    @@ -203,7 +203,12 @@ public void setup(OperatorContext context)
           //delete all the wal files with windows > activationWindow.
           //All the wal files with windows <= activationWindow are loaded and 
kept separately as recovered data.
           try {
    -        for (long recoveredWindow : 
checkpointManager.getWindowIds(operatorContext.getId())) {
    +        long[] recoveredWindows = 
checkpointManager.getWindowIds(operatorContext.getId());
    +        if (recoveredWindows == null) {
    +          readerService = Executors.newFixedThreadPool(numReaders, new 
NameableThreadFactory("managedStateReaders"));
    +          return;
    +        }
    +        for (long recoveredWindow : recoveredWindows) {
    --- End diff --
    
    Done


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