ubunturiakleveldbriak-cs

Riak node terminated with I/0 error


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.


Solution

  • As commented by maamaa above a solution is on the question Riak database fails after a short period.

    In short

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

    in the riak config (etc/app.config)