Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
14:57:02.909 [copycat-server-localhost/127.0.0.1:5004] ERROR i.a.c.u.c.SingleThreadContext - An uncaught exception occurred
java.lang.IllegalStateException: Cannot cast vote - leader already exists
at io.atomix.catalyst.util.Assert.state(Assert.java:69) ~[catalyst-common-1.0.0-SNAPSHOT.jar:na]
at io.atomix.catalyst.util.Assert.stateNot(Assert.java:76) ~[catalyst-common-1.0.0-SNAPSHOT.jar:na]
at io.atomix.copycat.server.state.ServerState.setLastVotedFor(ServerState.java:307) ~[copycat-server-1.0.0-SNAPSHOT.jar:na]
at io.atomix.copycat.server.state.ActiveState.handleVote(ActiveState.java:161) ~[copycat-server-1.0.0-SNAPSHOT.jar:na]
at io.atomix.copycat.server.state.FollowerState.handleVote(FollowerState.java:292) ~[copycat-server-1.0.0-SNAPSHOT.jar:na]
at io.atomix.copycat.server.state.ActiveState.vote(ActiveState.java:126) ~[copycat-server-1.0.0-SNAPSHOT.jar:na]
at io.atomix.copycat.server.state.ServerState.lambda$connectServer$52(ServerState.java:475) ~[copycat-server-1.0.0-SNAPSHOT.jar:na]
at io.atomix.catalyst.transport.LocalConnection.lambda$receive$7(LocalConnection.java:128) ~[catalyst-local-1.0.0-SNAPSHOT.jar:na]
at io.atomix.catalyst.util.concurrent.Runnables.lambda$logFailure$17(Runnables.java:20) ~[catalyst-common-1.0.0-SNAPSHOT.jar:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_66]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_66]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_66]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[na:1.8.0_66]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_66]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_66]
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_66]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.