dxichen opened a new pull request #1587:
URL: https://github.com/apache/samza/pull/1587
**Symptom**: We see the following when writing a large checkpoint to disk
```
Caused by: java.io.UTFDataFormatException
at
java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:2164)
~[?:1.8.0_282]
at
java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:2007)
~[?:1.8.0_282]
at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:869)
~[?:1.8.0_282]
at org.apache.samza.util.FileUtil.writeWithChecksum(FileUtil.scala:45)
~[samza-core_2.11-317.1071.9.4.jar:317.1071.9.4]
at
org.apache.samza.storage.StorageManagerUtil.writeCheckpointV2File(StorageManagerUtil.java:245)
```
**Cause**: FileUtil uses `ObjectOutputStream$BlockDataOutputStream.writeUTF`
which limits the size to 0xFFFF and throws `UTFDataFormatException` if the
length is greater
**Changes**: Chunked data larger than 0xFFFF into individual writes allowing
larger data size support, as well backwards compatibility
**Tests**: Added unit test for backward compatibility and large message
testing
--
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]