alievmirza commented on code in PR #5083:
URL: https://github.com/apache/ignite-3/pull/5083#discussion_r1939168458


##########
modules/raft-api/src/main/java/org/apache/ignite/internal/raft/RaftGroupConfigurationSerializer.java:
##########
@@ -59,8 +70,17 @@ private static void writeNullableStringList(@Nullable 
List<String> strings, Igni
 
     @Override
     protected RaftGroupConfiguration readExternalData(byte protoVer, 
IgniteDataInput in) throws IOException {
-        long index = in.readLong();
-        long term = in.readLong();
+        long index;
+        long term;
+
+        if (protoVer == 2) {

Review Comment:
   fixed



##########
modules/raft-api/src/main/java/org/apache/ignite/internal/raft/RaftGroupConfigurationSerializer.java:
##########
@@ -32,6 +32,17 @@ public class RaftGroupConfigurationSerializer extends 
VersionedSerializer<RaftGr
     /** Serializer instance. */
     public static final RaftGroupConfigurationSerializer INSTANCE = new 
RaftGroupConfigurationSerializer();
 
+    /** Unknown index value. */
+    private static final long UNKNOWN_INDEX = -1L;
+
+    /** Unknown term value. */
+    private static final long UNKNOWN_TERM = -1L;

Review Comment:
   moved



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