You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Bessonov (Jira)" <ji...@apache.org> on 2024/07/15 13:03:00 UTC
[jira] [Created] (IGNITE-22736) PartitionCommandsMarshallerImpl corrupts the buffer it reads from
Ivan Bessonov created IGNITE-22736:
--------------------------------------
Summary: PartitionCommandsMarshallerImpl corrupts the buffer it reads from
Key: IGNITE-22736
URL: https://issues.apache.org/jira/browse/IGNITE-22736
Project: Ignite
Issue Type: Bug
Reporter: Ivan Bessonov
{{PartitionCommandsMarshallerImpl#unmarshall}} receives a buffer, that's requested from the log manager, for example.
The instance of byte buffer that it receives might be acquired from on-heap cache of log entries. Modifying it would be
# not thread-safe, because multiple threads may start modifying it concurrently
# illegal, because it stays in the cache for some time, and we basically corrupt it by modifying it
We shouldn't do that
--
This message was sent by Atlassian Jira
(v8.20.10#820010)