Comments (6)
@komuw -- you need to send the query through the log to solve this final case (known as "strong" consistency in rqlite).
I suggest you study the rqlite source code, and learn what happens when a query request specifies "strong" consistency.
https://github.com/rqlite/rqlite/blob/master/store/store.go#L527
from hraftd.
This should be enough to learn how rqlite does it, but feel free to let me know if it doesn't.
from hraftd.
Just in case it is not clear, you need to port what rqlite does to hraftd.
from hraftd.
@otoolep just so that it's super clear, when you say; you need to send the query through the log
do you mean;
f := s.raft.Apply(b, raftTimeout)
return f.Error()
where b is the json-marshaled command?
from hraftd.
Yeah, that is what I mean, and what rqlite does when strong consistency is requested.
from hraftd.
from hraftd.
Related Issues (15)
- Couple of questions about raft implementation HOT 2
- Run hraftd on multi machines. HOT 3
- Failed to decode incoming command: unknown rpc type 80 HOT 2
- Update to hashicorp/raft 1.0.0 HOT 1
- When node dies, the next promoted master keeps trying to connect to the dead ones HOT 2
- Update to v1.0.0 of raft HOT 6
- Build error HOT 1
- Project description typo HOT 1
- a question about apply log in candidate node HOT 1
- how to make sure log has been commited ? HOT 6
- hraftd wont start HOT 10
- Raft re-adding peer gives Failed to AppendEntries error HOT 1
- Additions HOT 4
- Extended example of how to share cleaned up state when a new peer joins? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hraftd.