isapego commented on a change in pull request #9622:
URL: https://github.com/apache/ignite/pull/9622#discussion_r761175829
##########
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:
Do we really need this check? What will happen if we'd release chunk
twice?
--
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]