maksaska commented on code in PR #12201:
URL: https://github.com/apache/ignite/pull/12201#discussion_r2296620738


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridNearAtomicUpdateResponse.java:
##########
@@ -49,42 +48,46 @@ public class GridNearAtomicUpdateResponse extends 
GridCacheIdMessage implements
     public static final int CACHE_MSG_IDX = nextIndexId();
 
     /** Node ID this reply should be sent to. */
-    @GridDirectTransient
     private UUID nodeId;
 
     /** Future ID. */
+    @Order(value = 4, method = "futureId")
     private long futId;
 
     /** */
+    @Order(value = 5, method = "errors")
     private UpdateErrors errs;
 
     /** Return value. */
     @GridToStringInclude
+    @Order(value = 6, method = "returnValue")
     private GridCacheReturn ret;
 
     /** */
+    @Order(value = 7, method = "remapTopologyVersion")
     private AffinityTopologyVersion remapTopVer;
 
     /** Data for near cache update. */
+    @Order(8)
     private NearCacheUpdates nearUpdates;
 
     /** Partition ID. */
-    private int partId = -1;
+    @Order(value = 9, method = "partition")
+    private int partId;
 
     /** */
-    @GridDirectCollection(UUID.class)
     @GridToStringInclude
+    @Order(value = 10, method = "mapping")
     private List<UUID> mapping;
 
     /** */
-    @GridDirectTransient
     private boolean nodeLeft;
 
     /**
      * Empty constructor.
      */
     public GridNearAtomicUpdateResponse() {
-        // No-op.
+        partId = -1;

Review Comment:
   > Does it look like redundant initialization? 
   Yes, I guess so 
   
   > Also there can be redundant checks of partId value '-1' in code. 
   Looked up the code. Don't think there is redundancy related to this message. 
What did you mean by that?



-- 
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-unsubscr...@ignite.apache.org

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

Reply via email to