-
Notifications
You must be signed in to change notification settings - Fork 691
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
When the cluster is abnormal, the node started without the full local DB loaded. #1111
Comments
If you start only one node of a two-node cluster, your system is in an undefined state. Why would you expect the node to show the fully state? Anyway, I need more information than this. Please show me your query (ideally using |
I will also need the output of |
Start tow rqlite node:
Create table foo:
Insert data into the foo table:
Query table foo:
Query status:
Query nodes:
Query nodes?noleader:
Stop node 1 and node2 Start node 1:
Set the level to none and query table foo:
Query status:
Query nodes:
Query nodes?noleader:
|
I want to use level none to get the full data of the local node when the cluster is abnormal |
Thanks for the detailed report. Your particular scenario does not appear to be supported by the underlying Raft system.
So the situations are different -- in the first a single node just goes down, in the second the whole cluster goes down. It seems like the Hashicorp Raft code works differently at full cluster restart time, which is what you are doing. I agree it's not ideal, but I don't know at this time if this behaviour can be changed. I'll look into it. |
Thank you. Looking forward to it. |
Is there any new progress? |
No updates yet. |
No sign at this time this behavior can be changed. |
What version are you running?
7.6
Are you using Docker or Kubernetes to run your system?
no
Are you running a single node or a cluster?
cluster
What did you do?
Start one of the two cluster nodes and check the database data on the node
What did you expect to happen?
The node started with the full local DB loaded.
What happened instead?
The node loads only snapshot data.
Please include the Status, Nodes, and Expvar output from each node (or at least the Leader!)
See https://github.com/rqlite/rqlite/blob/master/DOC/DIAGNOSTICS.md
The text was updated successfully, but these errors were encountered: