Re: Managed State Custom Serializer with Avro

2018-02-26 Thread Niels
Hi guys, Noticing similar things as Arvid mentions. I currently solved the issue by also supporting GenericRecords written and read with the old schema and parse them to the new schema myself. This at least gives us the evolution until state migration is there. Thanks for your help! Cheers, Nie

Re: Managed State Custom Serializer with Avro

2018-02-20 Thread Arvid Heise
n an old GenericRecord that >> doesn't adhere to the new Avro schema. >> >> *What seems to happen to me is the following* (Say we evolve from dataV1 >> to >> dataV2): >> - State containing dataV1 is serialized with avro schema V1 to a >> check/savepoint. Along with the data, the serializer itself

Re: Managed State Custom Serializer with Avro

2018-02-20 Thread Arvid Heise
rementioned problem. If you > have any pointers as to whether this is true and what a possible solution > would be that would be very much appreciated! > > Thanks! > Niels > > > > -- > Sent from: > http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/ > > > > > > > If you reply to this email, your message will be added to the discussion > below: > > http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Managed-State-Custom-Serializer-with-Avro-tp18419p18437.html > To unsubscribe from Managed State Custom Serializer with Avro, click here. > NAML > >

Re: Managed State Custom Serializer with Avro

2018-02-20 Thread Till Rohrmann
o whether this is true and what a possible solution > would be that would be very much appreciated! > > Thanks! > Niels > > > > -- > Sent from: > http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/ > > > > > > > If you reply to this email, your message will be added to the discussion > below: > > http://apache-flink-user-mailing-list-archive.2336050. > n4.nabble.com/Managed-State-Custom-Serializer-with-Avro-tp18419p18437.html > To unsubscribe from Managed State Custom Serializer with Avro, click here. > NAML > > >

Re: Managed State Custom Serializer with Avro

2018-02-20 Thread Aljoscha Krettek
the classpath). Data is restored using this old >>>> serializer. >>>> The new serializer provided is only used for writes. >>>> >>>> If this is indeed the case it explains our aforementioned problem. If you >>>> have any pointers as to whether this is true and what a possible solution >>>> would be that would be very much appreciated! >>>> >>>> Thanks! >>>> Niels >>>> >>>> >>>> >>>> -- >>>> Sent from: >>>> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/ >>> >>> >>> >>> >>> >>> If you reply to this email, your message will be added to the discussion >>> below: >>> >>> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Managed-State-Custom-Serializer-with-Avro-tp18419p18437.html >>> To unsubscribe from Managed State Custom Serializer with Avro, click here. >>> NAML

Re: Managed State Custom Serializer with Avro

2018-02-20 Thread Arvid Heise
e new serializer provided is only used for writes. >>> >>> If this is indeed the case it explains our aforementioned problem. If you >>> have any pointers as to whether this is true and what a possible solution >>> would be that would be very much appreciated! >>> >

Re: Managed State Custom Serializer with Avro

2018-02-19 Thread Niels Denissen
that would be very much appreciated! >> >> Thanks! >> Niels >> >> >> >> -- >> Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4. >> nabble.com/ >> > > > > -- > If you reply to thi

Re: Managed State Custom Serializer with Avro

2018-02-19 Thread Till Rohrmann
Hi Niels, which version of Flink are you using? Currently, Flink does not support to upgrade the TypeSerializer itself, if I'm not mistaken. As you've described, it will try to use the old serializer stored in the checkpoint stream to restore state. I've pulled Gordon into the conversation who ca

Managed State Custom Serializer with Avro

2018-02-19 Thread Niels
Hi all, I'm currently trying to use Avro in order to evolve our data present in Flink's Managed State. I've extended the TypeSerializer class successfully for this purpose, but still have issues using Schema Evolution. *The problem:* When we try to read data (deserialize from savepoint) with a