-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example snippet does not work #5
Comments
I struggle to get started as well. 😥 |
I managed to get the server running using the following commands in the shell:
There are a few initialization steps that are missing in the getting started tutorial. My console for reference
UPDATE: Promotion works just fine but I'm still missing something. I cannot read written values. |
UPDATE: Solved. I was a bit too quick in writing here. I've updated the example and included that update in a pull request: #6 Hopefully this will help others get a slightly better start with waraft. It is a "feature", the API has changed so the read command is: When I call to read like it says on the get started page; The chain of function calls ends up calling Is this a bug? Should the read command work? Is this a feature? Has the API for reading from the cluster been changed? ERROR REPORT:
|
- use `wa_raft_acceptor:read/3` and `wa_raft_acceptor:commit/3` Thanks to WhatsApp#5 and WhatsApp#6 for sending me in the right direction.
I'm curious to give this a try but the lack of docs makes it hard to get started with. So I'm trying to use the snippet provided in the readme with the added ETS options from the kvstore example:
As I'm running this in a console per the example, but apparently the method needs to know the application name, I pass in the app name:
Then start the supervisor:
Browsing through code, I set the application env key
raft_database
to "/Users/roberto/workspace" (even though I am setting the ETS in-memory only options for log and storage) and then I get:I can keep this going (and I'll try to) but is there any chance there's a proper working example on how to use waraft?
Thank you,
r.
The text was updated successfully, but these errors were encountered: