Skip to content

Clarify error message for stale ring failures.#244

Merged
slfritchie merged 1 commit intobasho:masterfrom
evanmcc:pevm_stale_ring
Dec 12, 2013
Merged

Clarify error message for stale ring failures.#244
slfritchie merged 1 commit intobasho:masterfrom
evanmcc:pevm_stale_ring

Conversation

@evanmcc
Copy link
Contributor

@evanmcc evanmcc commented Oct 18, 2012

Add a meaningful warning to the failure when the ring file
doesn't have a entry for the current node name.

Fixes issue #243

doesn't have a entry for the current node name.
Caps =
case orddict:find(node(), State#state.supported) of
{ok, Val} -> Val;
error -> error("Node name mismatch, move or remove stale ring file")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it safe to just move the stale ring file aside? In the case where I forgot to rename a node and a cluster has been resized wont moving the file cause the node to startup possibly with the old ring size meaning it will have problems when it receives a gossiped ring from another member?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We often direct people to use older ring files when theirs are corrupted.
If this is unsafe under a resize we may have some more thinking to do. In
any case, this is usually something that people see when they're just
starting up, rather than on mature clusters.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes, older ring files, that addresses my concern.

@slfritchie
Copy link
Contributor

@evanmcc Based on the comments that I see here and on the referenced tickets, there's enough +1 to +1. +1 from me also.

slfritchie added a commit that referenced this pull request Dec 12, 2013
Clarify error message for stale ring failures.
@slfritchie slfritchie merged commit 333169e into basho:master Dec 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments