Giter Club home page Giter Club logo

Comments (10)

seancribbs avatar seancribbs commented on July 22, 2024

Does the problem go away when you switch to straight bitcask or leveldb?

from cuttlefish.

liveforeverx avatar liveforeverx commented on July 22, 2024

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

from cuttlefish.

seancribbs avatar seancribbs commented on July 22, 2024

@liveforeverx Thanks, which version are you running?

from cuttlefish.

liveforeverx avatar liveforeverx commented on July 22, 2024

riak, branch develop, latest commit:
cuttlefish-0.1.0-131-gbe3e808

from cuttlefish.

seancribbs avatar seancribbs commented on July 22, 2024

@liveforeverx What's the sha of the riak_kv dependency?

from cuttlefish.

liveforeverx avatar liveforeverx commented on July 22, 2024

@seancribbs, riak_kv-1.4.2-446-ga073f22

from cuttlefish.

liveforeverx avatar liveforeverx commented on July 22, 2024

@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}

from cuttlefish.

liveforeverx avatar liveforeverx commented on July 22, 2024

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}
]}.

from cuttlefish.

seancribbs avatar seancribbs commented on July 22, 2024

@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?

from cuttlefish.

seancribbs avatar seancribbs commented on July 22, 2024

Woops, looks like you fixed it already, thanks for the PR!

from cuttlefish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.