Closed liveforeverx closed 10 years ago
Does the problem go away when you switch to straight bitcask or leveldb?
Yes.
If I add only this line, it working too:
storage_backend = multi
Adding this line already caused this crash:
multi_backend.bitcask_mult.storage_backend = bitcask
@liveforeverx Thanks, which version are you running?
riak, branch develop, latest commit: cuttlefish-0.1.0-131-gbe3e808
@liveforeverx What's the sha of the riak_kv dependency?
@seancribbs, riak_kv-1.4.2-446-ga073f22
@seancribbs I'll try to find more:
It happens for this variable
["multi_backend","bitcask_mult","bitcask","expiry"]
["multi_backend","leveldb_mult","bitcask","expiry"]
with this value:
-1
Seems, that it configured to be an atom
(<0.87.0>) call cuttlefish_generator:transform_type([{atom,off},{duration,s}],-1)
I'll try to check, if it so.
If I set for every backend (as quick fix) the off value, it working:
multi_backend.bitcask_mult.storage_backend = bitcask
multi_backend.leveldb_mult.storage_backend = leveldb
multi_backend.bitcask_mult.bitcask.expiry = off
multi_backend.leveldb_mult.bitcask.expiry = off
And it comming as a default value false, but I can't find, where it will set:
{["multi_backend","memory_mult","bitcask","expiry"],-1},
{["multi_backend","leveldb_mult","bitcask","expiry"],-1},
{["multi_backend","bitcask_mult","bitcask","expiry"],-1},
{["bitcask","expiry"],off}
Seems, that default is configured false, if it so, please close the issue
{mapping, "multi_backend.$name.bitcask.expiry", "riak_kv.multi_backend", [
{datatype, [{atom, off}, {duration, s}]},
{level, advanced},
{default, off}
]}.
@liveforeverx This is a genuine bug. When you supply "off" in the config, it translates to -1
in the Erlang side. Not sure how to resolve it yet though. @joedevivo Thoughts?
Woops, looks like you fixed it already, thanks for the PR!
Hi, I don't know, where is better to address this issue, on riak or on cuttlefish.
I have used riak, branch develop, after compiling a release with make rel.
If I add the configuration to the riak like this:
Then I get the after compiling riak with make rel this error:
Without any information whats going wrong.
The stacktrace for the problem is: