0

My riak nodes are terminating unexpectedly with the following error. This thing started to happen after i made the following change. That's the only change i did.

{riak_kv, [ {storage_backend, riak_kv_eleveldb_backend},

Error in crash.log

2013-11-17 08:51:54 =SUPERVISOR REPORT==== Supervisor: {local,riak_core_sup} Context: child_terminated Reason: {{function_clause,[{riak_kv_vnode,terminate,[{bad_return_value,{stop,{db_open,"IO error: ./data/leveldb/45671926166590716193865151022383844364247891968/MANIFEST-000002: Cannot allocate memory"}}},undefined],[{file,"src/riak_kv_vnode.erl"},{line,838}]},{riak_core_vnode,terminate,3,[{file,"src/riak_core_vnode.erl"},{line,849}]},{gen_fsm,terminate,7,[{file,"gen_fsm.erl"},{line,586}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]},{gen_fsm,sync_send_event,[<0.2083.0>,wait_for_init,infinity]}} Offender: [{pid,<0.161.0>},{name,riak_core_vnode_manager},{mfargs,{riak_core_vnode_manager,start_link,[]}},{restart_type,permanent},{shutdown,5000},{child_type,worker}]

I started my riak nodes with the sudo access and nodes working properly after i started. Then after a couple of seconds nodes are terminating unexpectedly with the above error.

Any suggestions to solve this problem will be a great help. Thank You.

4

1 回答 1

1

正如上面 maamaa 所评论的,解决方案是关于Riak 数据库在短时间内失败的问题。

简而言之

disable AAE by setting {anti_entropy, {off, []}}

在 riak 配置 (etc/app.config)

于 2014-01-13T03:36:17.723 回答