Reading data from libraft agent

21 views
Skip to first unread message

Shridhar B

unread,
Dec 6, 2016, 3:09:01 PM12/6/16
to raft-dev
Hi am new to libraft, am doing this for a college project. I was able to form a cluster with 3 node and see the leader elected. and also i was able to store data and i could see samething replicated in other two servers too.
Facing issue in reading the data from libraft agent.Below is the code which trying to run
ListenableFuture<Void> consensusFuture = raftAgent.submitCommand(myCommand);

Not understanding how to handle this response, can somebody help me to make this working not finding any example/document regarding fetching data in libraft. I followed the KayVee example and but getting timeout exception, tried to increase the timeout in feature.get(...) but still same issue.

Diego Ongaro

unread,
Dec 7, 2016, 7:38:34 PM12/7/16
to raft...@googlegroups.com
Hi Shridhar,

I won't be able to help but want to clarify your question. There are many Raft implementations, and libraft isn't exactly a globally unique identifier. Are you talking about https://github.com/allengeorge/libraft?

-Diego

--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shridhar B

unread,
Dec 7, 2016, 9:17:39 PM12/7/16
to raft-dev
Hi Diego,


-Diego

To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages