Dan Bress created FLINK-5011:
--------------------------------

             Summary: TraversableSerializer does not perform a deep copy of the 
elements it is traversing
                 Key: FLINK-5011
                 URL: https://issues.apache.org/jira/browse/FLINK-5011
             Project: Flink
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.1.3
            Reporter: Dan Bress


I had an issue where the state in my rolling window was incorrectly being 
maintained from window to window.  The initial state of my window looked like 
this:

Map[Key, MutableValue] = {("A", Value(0)}, ("B", Value(0)}

and I saw the MutableValue's being preserved across windows rather than going 
back to zero.

It looks like 
[TraversableSerializer|https://github.com/apache/flink/blob/master/flink-scala/src/main/scala/org/apache/flink/api/scala/typeutils/TraversableSerializer.scala#L65-L69]
 is doing a shallow copy of the elements in the traversable instead of a deep 
copy



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to