Problem when running ReplicatedStateMachineDemo

44 views
Skip to first unread message

Cheng Li

unread,
Jun 19, 2015, 6:51:03 AM6/19/15
to jgroup...@googlegroups.com
Hi all,

When I tested the RSMDemo, I found the following error:

java -cp  ./:../../lib/jgroups-3.6.3.Final.jar:../../lib/leveldbjni-all-1.8.jar org.jgroups.raft.demos.ReplicatedStateMachineDemo -props raft.xml -name A
Exception in thread "main" java.lang.IllegalArgumentException: command 5 is unknown
        at org.jgroups.raft.blocks.ReplicatedStateMachine.apply(ReplicatedStateMachine.java:167)
        at org.jgroups.protocols.raft.RAFT.initStateMachineFromLog(RAFT.java:369)
        at org.jgroups.protocols.raft.RAFT.start(RAFT.java:433)
        at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:965)
        at org.jgroups.JChannel.startStack(JChannel.java:891)
        at org.jgroups.JChannel._preConnect(JChannel.java:553)
        at org.jgroups.JChannel.connect(JChannel.java:288)
        at org.jgroups.JChannel.connect(JChannel.java:279)
        at org.jgroups.raft.demos.ReplicatedStateMachineDemo.start(ReplicatedStateMachineDemo.java:30)
        at org.jgroups.raft.demos.ReplicatedStateMachineDemo.main(ReplicatedStateMachineDemo.java:184)

Could you please help me figure out the problem?

Thanks,
   Cheng

Bela Ban

unread,
Jun 19, 2015, 7:33:57 AM6/19/15
to jgroup...@googlegroups.com
You probably have a old log from a different appication, also called A.
This of course is something the format of which RSM won't understand.

To fix this, cd to your temp dir and rm -fr A.log* A.snap*
> --
> You received this message because you are subscribed to the Google
> Groups "jgroups-raft" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jgroups-raft...@googlegroups.com
> <mailto:jgroups-raft...@googlegroups.com>.
> To post to this group, send email to jgroup...@googlegroups.com
> <mailto:jgroup...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jgroups-raft/f51e78f1-5f40-4c40-8ba7-1f02596c60e3%40googlegroups.com
> <https://groups.google.com/d/msgid/jgroups-raft/f51e78f1-5f40-4c40-8ba7-1f02596c60e3%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Bela Ban, JGroups lead (http://www.jgroups.org)

Reply all
Reply to author
Forward
0 new messages