szetszwo commented on code in PR #954:
URL: https://github.com/apache/ratis/pull/954#discussion_r1380619949


##########
ratis-server/src/test/java/org/apache/ratis/server/impl/RaftServerTestUtil.java:
##########
@@ -196,4 +206,44 @@ public static SegmentedRaftLog 
newSegmentedRaftLog(RaftGroupMemberId memberId, D
   public static boolean isHighestPriority(RaftConfiguration config, RaftPeerId 
peerId) {
     return ((RaftConfigurationImpl)config).isHighestPriority(peerId);
   }
+
+  public interface ConsumerWithIOException {
+    void accept(Collection<RaftPeer> peesToSetConf) throws IOException;
+  }

Review Comment:
   Use `CheckedConsumer`, i.e.
   ```java
     public static void runWithMinorityPeers(MiniRaftCluster cluster, 
Collection<RaftPeer> peersInNewConf,
         CheckedConsumer<Collection<RaftPeer>, IOException> consumer) throws 
IOException {
   ```



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