flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fhueske <...@git.apache.org>
Subject [GitHub] flink pull request #2612: FLINK-4771: Compression for AvroOutputFormat
Date Mon, 10 Oct 2016 12:13:14 GMT
Github user fhueske commented on a diff in the pull request:

    --- Diff: flink-batch-connectors/flink-avro/src/main/java/org/apache/flink/api/java/io/AvroOutputFormat.java
    @@ -36,6 +38,8 @@
     	private final Class<E> avroValueType;
     	private transient Schema userDefinedSchema = null;
    +	private transient CodecFactory codecFactory = null;
    --- End diff --
    Flink uses Java Serialization to ship code from the client to the cluster. `CodecFactory`
does not implement `Serializable`. Therefore, the `codecFactory` field must be declared as
`transient`. However, the `writeObject` and `readObject` methods must be adapted to manually
serialize / deserialize the information. Otherwise, the `CodecFactory` is lost when the object
is deserialized at the client.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message