Skip to content

Tag: apache-flink

Flink, rule of using ‘object reuse mode’

Doc says this mode can cause bugs, but it does not tell me the rule of using this mode, in what case it will cause bugs? Let’s say I have a job, source: kafka (byte[] data), flat-map: parse byte[] to Google Protobuf object ‘foo’, create a Tuple2<>(foo.id, foo), and return this tuple2 k…