shishkovilja commented on code in PR #12402:
URL: https://github.com/apache/ignite/pull/12402#discussion_r2705225087


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/PartitionUpdateCountersMessage.java:
##########
@@ -66,13 +61,35 @@ public PartitionUpdateCountersMessage(int cacheId, int 
initSize) {
         data = new byte[initSize * ITEM_SIZE];
     }
 
+    /**
+     * @return Payload.
+     */
+    public byte[] payload() {
+        return Arrays.copyOf(data, size * ITEM_SIZE);

Review Comment:
   @chesnokoff , see an example:
   ```suggestion
           return F.isEmpty(data) ? null : Arrays.copyOf(data, size * 
ITEM_SIZE);
   ```



-- 
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]

Reply via email to