Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2612#discussion_r82591316
  
    --- 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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to