Giter Club home page Giter Club logo

Comments (5)

matriv avatar matriv commented on June 17, 2024 1

Currently, blocks.read_only_allow_delete flag is switched automatically to true when the watermark is reached. At this point, user can only delete rows from tables, and nothing more. To drop a table you need to change Metadata, and currently blocks.read_only_allow_delete blocks such operations, probably because we assume that if there is no disk space left, changing the metadata could potentially cause corruptions.

Allowing only delete of rows, if space is exhausted, won't help, as deleting rows, means adding data to translog and then new segments, which will require more space (until afterwards, segments are merged and space is indeed freed up).

We should probably allow to drop tables when blocks.read_only_allow_delete is automatically set to true, to free up space, BUT we need to investigate and make sure that changing cluster state metadata in such conditions (very low, or even no space left on device situation) is safe.

Thank you @seut for the discussion on this topic.

from crate.

matriv avatar matriv commented on June 17, 2024

doesn't this relate to: #14963 ?

from crate.

proddata avatar proddata commented on June 17, 2024

doesn't this relate to: #14963 ?

How can I free up space, if I can't delete a table :)

from crate.

matriv avatar matriv commented on June 17, 2024

As we state now in the docs, if the table is read_only, you need to reset this flag, or set write to true to be able to delete. the blocks.read_only_allow_delete is a flag that is switched back and forth automatically if the watermark is reached/unershot.

from crate.

mfussenegger avatar mfussenegger commented on June 17, 2024

Relates a bit to #12710. I extended the info there to close this as duplicate

from crate.

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.