Wei-Chiu Chuang created HDDS-10471:
--------------------------------------
Summary: [hsync] MockDatanodeStorage.writeChunk should make a copy
of byte string
Key: HDDS-10471
URL: https://issues.apache.org/jira/browse/HDDS-10471
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Wei-Chiu Chuang
MockDatanodeStorage.writeChunk simply adds the bytestring chunk info into its
internal map, and after HDDS-9843 which made chunk buffer direct buffer, it
causes some sort of memory corruption as described in HDDS-10431. Suspect it's
a JVM bug.
Solution is simple: make a copy of the byte buffer.
Thanks [~smeng] for narrowing down the culprit.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]