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


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/binary/MetadataUpdateAcceptedMessage.java:
##########
@@ -30,27 +32,38 @@
  * As discovery messaging doesn't guarantee that message makes only one pass 
across the cluster
  * <b>MetadataUpdateAcceptedMessage</b> enables to mark it as duplicated so 
other nodes won't process it but skip.
  */
-public class MetadataUpdateAcceptedMessage implements DiscoveryCustomMessage {
+public class MetadataUpdateAcceptedMessage implements DiscoveryCustomMessage, 
Message {
     /** */
     private static final long serialVersionUID = 0L;
 
     /** */
-    private final IgniteUuid id = IgniteUuid.randomUuid();
+    public static final short DIRECT_TYPE = 504;
 
     /** */
-    private final int typeId;
+    @Order(0)
+    IgniteUuid id;
 
     /** */
-    private final int acceptedVer;
+    @Order(1)
+    int typeId;
 
     /** */
-    private boolean duplicated;
+    @Order(2)
+    int acceptedVer;
+
+    /** */
+    @Order(3)
+    boolean duplicated;
+
+    /** */
+    public MetadataUpdateAcceptedMessage() {}
 
     /**
      * @param typeId Type id.
      * @param acceptedVer Accepted version.
      */
     MetadataUpdateAcceptedMessage(int typeId, int acceptedVer) {
+        this.id = IgniteUuid.randomUuid();

Review Comment:
   ```suggestion
           id = IgniteUuid.randomUuid();
   ```



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