Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7.4
-
None
-
None
Description
Using the GenericDatumWriter specifically, writing out an avro containing a read-only ByteBuffer changes state of the original object, making it unusable after the initial write. Potentially either the ByteBuffer needs to be copied prior to writing if read-only, or the offset needs to be reset after writing.
I'll attach a simple test which shows the issue