Code Monkey home page Code Monkey logo

Comments (8)

stgraber avatar stgraber commented on May 24, 2024 3

@freeekanayaka dqlite fixes for our users take priority over other work, so lets get this one sorted, then go back to the DB tooling in LXD and then onto the rest so long as no other important issues pop up in between

from dqlite.

freeekanayaka avatar freeekanayaka commented on May 24, 2024 2

This has been fixed in raft canonical/raft#85.

So lxd 3.19 should be able to upgrade from any previous version (e.g. 3.16 and 3.17 in your case) without hitting "transaction too big" error.

I tested the upgrade with the database tarball you had sent me and it worked.

from dqlite.

ubojan avatar ubojan commented on May 24, 2024

Hi, do you know when this might be solved? There are number of instances with "broken" lxd (regarding https://github.com/lxc/lxd/issues/6322), but containers running.
If it will take considerable amount of time, we might bite the bullet and perform advised workaround (delete old snapshots) on all instances.

from dqlite.

freeekanayaka avatar freeekanayaka commented on May 24, 2024

@ubojan I still have to check the details but it most likely will require some time to fix this issue.

However, I think we can workaround the issue by committing the change in smaller transactions. I can try to have a stab at that if you wish (it might require a new lxd release, but maybe not if we're lucky).

from dqlite.

ubojan avatar ubojan commented on May 24, 2024

That would be cool!

from dqlite.

freeekanayaka avatar freeekanayaka commented on May 24, 2024

I'll try to look at the situation tomorrow and let you know.

from dqlite.

freeekanayaka avatar freeekanayaka commented on May 24, 2024

Unfortunately coming up with a simple workaround is more complicated than I thought, mainly because the patch that upgrades from version 15 to version 16 of the database schema is hard to break down in smaller pieces.

I've also given a quick look at how long the proper fix (which should be made in libraft) might take and I think it's a few days of work, so not something straightforward. We want to have it fixed as well, but I have to sync with @stgraber about the priority of it, as we have a few other things.

from dqlite.

ubojan avatar ubojan commented on May 24, 2024

@freeekanayaka thanks for the update and for the provided (delete old snapshots) workaround. @stgraber thanks for assigning this ticket high priority.
I've went ahead and fixed lxd service using workaround on affected instances.
Also dqlite fix is highly appreciated as we have lots of instances still on 3.16 and 3.17 and would like them to update to latest version.

from dqlite.

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.