[ https://issues.apache.org/jira/browse/FLINK-16242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17042877#comment-17042877 ]
Jiayi Liao edited comment on FLINK-16242 at 2/23/20 10:09 AM: -------------------------------------------------------------- Based on the stack trace, It looks like we forgot to duplicate the field serializers when duplicating {{BaseRowSerializer}}. And it works fine after I duplicate the field serializers like this {code:java} TypeSerializer<?>[] duplicateFieldSerializers = new TypeSerializer[fieldSerializers.length]; for (int i = 0; i < fieldSerializers.length; i++) { duplicateFieldSerializers[i] = fieldSerializers[i].duplicate(); } return new BaseRowSerializer(types, duplicateFieldSerializers); {code} was (Author: wind_ljy): Based on the stack trace, It looks like we forgot to duplicate the field serializers when duplicating {{BaseRowSerializer}}. And it works fine after I duplicate the filed serializers like this {code:java} TypeSerializer<?>[] duplicateFieldSerializers = new TypeSerializer[fieldSerializers.length]; for (int i = 0; i < fieldSerializers.length; i++) { duplicateFieldSerializers[i] = fieldSerializers[i].duplicate(); } return new BaseRowSerializer(types, duplicateFieldSerializers); {code} > BinaryGeneric serialization error cause checkpoint failure > ---------------------------------------------------------- > > Key: FLINK-16242 > URL: https://issues.apache.org/jira/browse/FLINK-16242 > Project: Flink > Issue Type: Improvement > Components: Table SQL / Planner, Table SQL / Runtime > Affects Versions: 1.9.2 > Reporter: Jiayi Liao > Priority: Major > Attachments: error_serialization > > > The serialization error occurs from time to time when we're using > {{RoaringBitmap}} as the accumulator of a UDAF. > I've attached the screenshot of the error. -- This message was sent by Atlassian Jira (v8.3.4#803005)