Re: State serialization problem when we add a new field in the object

2018-03-14 Thread Kostas Kloudas
Hi Konstantin, What you could do, is that you write and intermediate job that has the old ValueState “oldState” and the new one “newState”, with the new format. When an element comes in this intermediate job, you check the oldState if it is empty for that key or not. If it is null (empty),

Re: State serialization problem when we add a new field in the object

2018-03-14 Thread Fabian Hueske
Hi, Flink supports upgrading of serializers [1] [2] since version 1.3. You probably need to upgrade to Flink 1.3 before you can use the feature. Best, Fabian [1] https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/stream/state/custom_serialization.html [2]

Re: State serialization problem when we add a new field in the object

2018-03-14 Thread kla
Hi Aljoscha, Thanks for your reply. Do you have a suggestion how can we workaround it ? We have a production system running with Flink and it is mandatory to add one more field in the state. Maybe some how we can write our own serializer? Thanks, Konstantin -- Sent from:

Re: State serialization problem when we add a new field in the object

2018-03-13 Thread Aljoscha Krettek
Hi, I'm afraid Flink does currently not support changing the schema of state when restoring from a savepoint. Best, Aljoscha > On 13. Mar 2018, at 07:36, kla wrote: > > Hi guys, > > I have the flink streaming job running (1.2.0 version) which has the > following state:

State serialization problem when we add a new field in the object

2018-03-13 Thread kla
Hi guys, I have the flink streaming job running (1.2.0 version) which has the following state: private transient ValueState>> userState; With following configuration: final ValueStateDescriptor>> descriptor = new