ibessonov commented on code in PR #6323:
URL: https://github.com/apache/ignite-3/pull/6323#discussion_r2231338076
##########
modules/network/src/main/java/org/apache/ignite/internal/network/netty/OutboundEncoder.java:
##########
@@ -140,12 +246,24 @@ private NetworkMessageChunkedInput(
}
this.serializer =
serializationService.createMessageSerializer(msg.groupType(),
msg.messageType());
- this.writer = writer;
+ }
+
+ private void cleanupMessage() {
+ // Best effort fast cleanup. Won't work if array is concurrently
reallocated.
+ // Non-volatile write is fine, no one will read this value anymore.
+ this.state.get().messages[currentMessageIndex] = null;
Review Comment:
This recommendation makes no sense
--
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]