You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2021/12/02 15:01:56 UTC

[GitHub] [ignite] isapego commented on a change in pull request #9622: IGNITE-13804 Java thin: avoid buffer copy on send

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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org