ptupitsyn commented on a change in pull request #9622:
URL: https://github.com/apache/ignite/pull/9622#discussion_r761198971
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/client/thin/PayloadOutputChannel.java
##########
@@ -57,6 +63,7 @@ public BinaryOutputStream out() {
/** {@inheritDoc} */
@Override public void close() {
- out.close();
+ if (closed.compareAndSet(false, true))
+ out.release();
Review comment:
The chunk is reusable and may be already acquired for another request.
If we release it again, it may be then acquired again and overwritten, causing
data corruption.
Added a comment.
--
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]