RustedBones opened a new pull request, #28280:
URL: https://github.com/apache/beam/pull/28280

   addresses #28279 
   
   Avro has a discrepancy between reflect reader and writer side:
   - In the reader side, `new ReflectDatumReader<>(clazz)` returns a [new model 
data](https://github.com/apache/avro/blob/60796e5df4581589717cfa32952da792dec79b68/lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectDatumReader.java#L52)
   - In the writer side `new ReflectDatumWriter<>(clazz)` returns the 
[singleton model 
data](https://github.com/apache/avro/blob/60796e5df4581589717cfa32952da792dec79b68/lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectDatumWriter.java#L45)
   
   Updating the model data's logical types is not a thread safe operation, so 
we must not use the singleton instance in this case.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to