Coder Social home page Coder Social logo

Test downgrade about bitcask HOT 5 CLOSED

basho avatar basho commented on July 18, 2024
Test downgrade

from bitcask.

Comments (5)

jonmeredith avatar jonmeredith commented on July 18, 2024

Assigned to 2.0 final - thanks Engel.

from bitcask.

engelsanchez avatar engelsanchez commented on July 18, 2024

Well well. The result of my testing was unexpected: Downgrade is not possible, but it has nothing to do with the tombstone changes mentioned here. The work done to support a more efficient form of key encoding makes the new keys unreadable by the older code. I believe related to this commit: basho/riak_kv@2340346#diff-709ab916aa28dc2a7f28acd8874529dd

I'm unable to read values whether they were deleted in 2.0 or not. Also, when listing keys the workers crash trying to b2t the keys:

2014-08-27 18:27:01.830 [error] <0.608.0> CRASH REPORT Process <0.608.0> with 0 neighbours
 exited with reason: bad argument in call to erlang:binary_to_term(<<2,0,1,98,49,56>>) in 
riak_kv_bitcask_backend:'-fold_keys_fun/2-fun-1-'/4 line 461 in gen_server:terminate/6 line 747

So, as we stand now, there is no easy downgrade path without some kind of tool to reformat all the data :(

from bitcask.

engelsanchez avatar engelsanchez commented on July 18, 2024

Although I laughed at this option once, maybe we should do a release in the 1.4 series that can read this new format. I have now seen that approach taken with other NoSQL DBs, although it's less than optimal.

from bitcask.

evanmcc avatar evanmcc commented on July 18, 2024

Let me know if there's anything that I can do to do help.

It's also possible to just not use that code, I think just with a config
change, or an easy code change.

On Wed, Aug 27, 2014 at 3:44 PM, Engel A. Sanchez [email protected]
wrote:

Although I laughed at this option once, maybe we should do a release in
the 1.4 series that can read this new format. I have now seen that approach
taken with other NoSQL DBs, although it's less than optimal.


Reply to this email directly or view it on GitHub
#178 (comment).

from bitcask.

engelsanchez avatar engelsanchez commented on July 18, 2024

2.0.0 released with this downgrade problem. A script is available for people who need to downgrade back to an old version after moving to 2.0.0.

from bitcask.

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.