Thanks for clarifying Jiayi. If there is a change in "MyObject" class, would it help to have a serialVersionUID defined?
Thanks, Jayant On Wed, Nov 28, 2018 at 12:52 PM bupt_ljy <bupt_...@163.com> wrote: > Hi, Jayant > > 1. The uuid is an unique identifier for a specific operator, which > means that Flink uses the uuid to recognize the operator when restoring. > > 2. The operator has already implemented the Serializable interface so > you don’t need to do it explicitly. > > 3. The type information of “MyObject” should be defined in the > MapStateDescriptor, so no need to worry about it. > > > Best, > > Jiayi Liao > > Original Message > *Sender:* Jayant Ameta<wittyam...@gmail.com> > *Recipient:* user<user@flink.apache.org> > *Date:* Wednesday, Nov 28, 2018 15:09 > *Subject:* Flink operator UUID and serialVersionUID > > Hi all, I've a few questions regarding serial version: > > 1. The production ready checklist mentions using uuids > <https://ci.apache.org/projects/flink/flink-docs-release-1.6/ops/production_ready.html#set-uuids-for-operators> > for > operators. How is it different from setting a serialVersionUID on an > operator? > > 2. Which operators need to have a serialVersionUID present (or implement > Serializable interface)? > > 3. If I have a MapState<String, MyObject>, does MyObject need to have a > serialVersionUID and does it need to implement Serializable interface? > > Thanks, > Jayant >