nlu90 opened a new pull request #2935: make EvitionContext extend Serializable
URL: https://github.com/apache/incubator-heron/pull/2935
 
 
   Previously without extending the `Serializable` interface, a tumbling window 
in stateful processing causes the following exception:
   
   ```
   [2018-06-22 13:16:01 -0700] [SEVERE] 
org.apache.heron.instance.HeronInstance: Exception caught in thread: 
SlaveThread with id: 13 
   java.lang.ClassCastException: 
org.apache.heron.api.windowing.DefaultEvictionContext cannot be cast to 
java.io.Serializable
        at 
org.apache.heron.api.windowing.WindowManager.getState(WindowManager.java:350)
        at 
org.apache.heron.api.bolt.WindowedBoltExecutor.preSave(WindowedBoltExecutor.java:452)
        at 
org.apache.heron.api.bolt.StatefulWindowedBoltExecutor.preSave(StatefulWindowedBoltExecutor.java:61)
        at 
org.apache.heron.instance.bolt.BoltInstance.persistState(BoltInstance.java:153)
        at 
org.apache.heron.instance.bolt.BoltInstance.readTuplesAndExecute(BoltInstance.java:255)
        at 
org.apache.heron.instance.bolt.BoltInstance$1.run(BoltInstance.java:220)
        at 
org.apache.heron.common.basics.WakeableLooper.executeTasksOnWakeup(WakeableLooper.java:191)
        at 
org.apache.heron.common.basics.WakeableLooper.runOnce(WakeableLooper.java:110)
        at 
org.apache.heron.common.basics.WakeableLooper.loop(WakeableLooper.java:100)
        at org.apache.heron.instance.Slave.run(Slave.java:185)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
    ```
   
   This PR fixes the problem and also added one example.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to