Comments (5)
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.
doesn't this relate to: #14963 ?
from crate.
doesn't this relate to: #14963 ?
How can I free up space, if I can't delete a table :)
from crate.
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.
Relates a bit to #12710. I extended the info there to close this as duplicate
from crate.
Related Issues (20)
- Add `quarter` to `INTERVAL` values HOT 1
- Improvement to the shard allocation logic when `max_shards_per_node` configured HOT 2
- Consider if some words could be allowed as identifier names without quoting HOT 1
- Vector Store: Support for Cosine similarity and Dot Product when creating a FLOAT_VECTOR HOT 3
- fdw: Parquet foreign data wrapper (write support)
- `_raw` returns IDs instead of column names HOT 4
- FDW - Can't query data from remote server using a non-superuser HOT 1
- ElasticsearchUncaughtExceptionHandler] [crate1] uncaught exception in thread [main] HOT 2
- Expand blob data type limitations in the docs
- dev cluster hash join regression HOT 1
- JWT: support public keys caching HOT 3
- Architecture image not readable in dark mode HOT 1
- fdw/jdbc: Support and document adding additional jdbc drivers
- Improve insert performance for partitioned tables HOT 2
- max_shards_per_node not behaving as documented HOT 5
- Improve SQLParseException to include query and approximate position of the error. HOT 2
- COPY FROM does not work on all files inside folder HOT 10
- Vector Store: Provide distance functions as scalar functions HOT 3
- Support for CREATE TYPE HOT 5
- Unable to copy data between tables using the syntax: `INSERT INTO test2 (SELECT * FROM test)` HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crate.