Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Two vnodes in the same preflist with the same vnode_id - amnesia chaos #1865

Open
martinsumner opened this issue Jul 13, 2023 · 0 comments
Open

Comments

@martinsumner
Copy link
Contributor

martinsumner commented Jul 13, 2023

The assigning of vnode ID is based on node ID and timestamp:

https://github.com/basho/riak_kv/blob/develop-3.0/src/riak_kv_vnode_status_mgr.erl#L342-L354

Vnodes on the same node are started in parallel, and so can have the same node ID and timestamp. If the cluster is too small for claim to be effective, then two vnodes within the same preflist may be started on the same node. In this circumstance, and write of a key co-ordinated by either vnode will cause key-amnesia then read repair will be prompted by that key amnesia in a continuous and never-ending loop.

There is potentially no recovery from this situation.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant