You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/05/05 19:08:51 UTC

[GitHub] [flink] tweise commented on a diff in pull request #19645: [FLINK-27255] [flink-avro] flink-avro does not support ser/de of large avro schema

tweise commented on code in PR #19645:
URL: https://github.com/apache/flink/pull/19645#discussion_r866230231


##########
flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/typeutils/GenericRecordAvroTypeInfo.java:
##########
@@ -104,10 +105,15 @@ public boolean canEqual(Object obj) {
     }
 
     private void writeObject(ObjectOutputStream oos) throws IOException {
-        oos.writeUTF(schema.toString());
+        byte[] schemaStrInBytes = schema.toString(false).getBytes(StandardCharsets.UTF_8);

Review Comment:
   What gets stored in the the checkpoint/savepoint is the type serializer snapshot. The TypeInfo would be part of the serialized job graph. AFAIK, that does not survive a restart?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org