liyuheng55555 commented on code in PR #12143: URL: https://github.com/apache/iotdb/pull/12143#discussion_r1519068566
########## iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/simple/SimpleConsensus.java: ########## @@ -168,11 +168,13 @@ public void createLocalPeer(ConsensusGroupId groupId, List<Peer> peers) return null; } - SimpleConsensusServerImpl impl = - new SimpleConsensusServerImpl(peers.get(0), registry.apply(groupId)); - impl.start(); - return impl; + return new SimpleConsensusServerImpl(peers.get(0), registry.apply(groupId)); })) + .map( + impl -> { + impl.start(); Review Comment: Does IoTConsensus have similar problem ? <img width="963" alt="image" src="https://github.com/apache/iotdb/assets/90501481/23aa1618-6636-427c-8392-29fc3712b4b4"> -- 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: reviews-unsubscr...@iotdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org