You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by GitBox <gi...@apache.org> on 2021/04/23 11:07:51 UTC

[GitHub] [ratis] szetszwo commented on a change in pull request #465: Ratis 1362 Intermittent NPE in RaftReconfigurationBaseTest

szetszwo commented on a change in pull request #465:
URL: https://github.com/apache/ratis/pull/465#discussion_r619134541



##########
File path: ratis-server/src/test/java/org/apache/ratis/server/impl/RaftReconfigurationBaseTest.java
##########
@@ -339,17 +336,6 @@ void runTestBootstrapReconf(int numNewPeer, boolean startNewPeer, CLUSTER cluste
         final PeerChanges c1 = cluster.addNewPeers(numNewPeer, startNewPeer);
         LOG.info("Start changing the configuration: {}",
                 asList(c1.allPeersInNewConf));
-        final AtomicReference<Boolean> success = new AtomicReference<>();
-
-        Thread clientThread = new Thread(() -> {
-          try {
-            RaftClientReply reply = client.admin().setConfiguration(c1.allPeersInNewConf);
-            success.set(reply.isSuccess());
-          } catch (IOException ioe) {
-            LOG.error("FAILED", ioe);
-          }
-        });
-        clientThread.start();

Review comment:
       The client should be started before "startNewPeer" below.  Otherwise, the test is changed.  




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

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