sashapolo commented on a change in pull request #218:
URL: https://github.com/apache/ignite-3/pull/218#discussion_r672289923



##########
File path: 
modules/raft/src/main/java/org/apache/ignite/raft/jraft/core/FSMCallerImpl.java
##########
@@ -647,18 +649,20 @@ private void doSnapshotLoad(final LoadSnapshotClosure 
done) {
             setError(e);
             return;
         }
-        if (meta.getOldPeersCount() == 0) {
+        if (meta.oldPeersList() == null) {
             // Joint stage is not supposed to be noticeable by end users.
             final Configuration conf = new Configuration();
-            for (int i = 0, size = meta.getPeersCount(); i < size; i++) {
-                final PeerId peer = new PeerId();
-                Requires.requireTrue(peer.parse(meta.getPeers(i)), "Parse peer 
failed");
-                conf.addPeer(peer);
+            if (meta.peersList() != null) {

Review comment:
       yes, it can




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