I experienced the following exception when I issued a sequence of requests to a customized counter service (single-thread):
java.util.concurrent.TimeoutException
at java.util.concurrent.CompletableFuture.timedAwaitDone(CompletableFuture.java:365)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2260)
at org.jgroups.protocols.raft.REDIRECT.set(REDIRECT.java:61)
at org.jgroups.raft.RaftHandle.set(RaftHandle.java:73)
at org.mpi.vasco.coordination.protocols.centr.rsm.CounterService.invoke(CounterService.java:219)
at org.mpi.vasco.coordination.protocols.centr.rsm.CounterService.getAndAdd(CounterService.java:79)
I basically followed what Bela suggested, namely lowering resend_interval from 2000 to 100. However it didn't completely solve this problem.