basho / riak_kv

Riak Key/Value Store
Apache License 2.0
651 stars 232 forks source link

Vnode won't start with crash error for mixed vnode_status file [JIRA: RIAK-1857] #1142

Open russelldb opened 9 years ago

russelldb commented 9 years ago

From Dams in #riak on IRC

CRASH REPORT Process <0.15403.0> with 0 neighbours exited with reason: no function clause matching riak_kv_vnode:terminate({{{case_clause,{1,10000,<<"Lý<äUxªÏ">>}},[{riak_kv_vnode_status_mgr,get_counter_lease,3,[{file,...},...]},...]},...}, undefined) line 1155 in gen_fsm:terminate/7 line 600

Looks like it is possible for the vnode status file to be written as v1, and have a counter. Have asked for more information in IRC.

https://github.com/basho/riak_kv/blob/2.1/src/riak_kv_vnode_status_mgr.erl#L259

Maybe the scenario was run with vnode_counters, then turn off vnode_counters, then turn them on.

russelldb commented 9 years ago

As a workaround until a patch, removing the vnode_status file allows the vnode to start again safely

russelldb commented 9 years ago

See basho/riak_kv/pull/1144

JeetKunDoug commented 9 years ago

Now that basho/riak_kv#1144 is merged into 2.1, can we close this?

Basho-JIRA commented 9 years ago

[~russelldb] Is this the same as PR1144 mentioned above (JIRA Riak-1857)? Should this be closed and done? I can see that PR1144 was merged but don't see PR1142 as merged in the comparison list I have from Jon M.

_[posted via JIRA by Patricia Brewer]_