Some tablet is in TABLET_DATA_TOMBSTONED status, what does it mean?
Do we have ways to remove tablets in that state?
TABLET_DATA_TOMBSTONED in YugabyteDB
16 Views Asked by dh YB At
1
There are 1 best solutions below
Related Questions in YUGABYTEDB
- TABLET_DATA_TOMBSTONED in YugabyteDB
- Difference in primary-key column order in YugabyteDB
- YugabyteDB Can't assign requested address
- Is there a easy way to run yugabyte db in local (mac os) with python3?
- Catalog Version Mismatch: A DDL occurred while processing this query error when refreshing multiple materialized views in YugabyteDB
- Flyway migration using Yugabyte JDBC Smart Driver?
- How YugabyteDB handles conflict between regions in multi-region replication
- YugabyteDB internals on range queries over hash-partitioned tables
- Bidirectional asynchronous replication with 3 clusters in YugabyteDB
- YugabyteDB CDC compared to PostgreSQL logical replication
- How to access database running on WSL2 from Windows
- YugabyteDB 'NoneType' object has no attribute 'group'
- problem yugabyte works on the command prompt but not for PGAdmin
- Yugabyte DB how to scale up disk storage size
- YugaByteDB tablet implementation
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The tablet status
TABLET_DATA_TOMBSTONEDis the result of a truncate on the table or index that the tablet serves.All the tablets belonging to that table and all tablets belonging to what we refer to as ‘secondary indexes’ will be in this state.
You probably are thinking about the disk space that the tablet(s) still would occupy, when it is simply given the
TABLET_DATA_TOMBSTONEDstatus? This is a logical state of the tablet.The function of a truncate is to remove all the rows the object that is truncated stores, but without touching any of the rows. This is done by simply de-attaching the rows from the object. Therefore, a truncate (in both PostgreSQL and YugabyteDB) is not MVCC safe. This the consequence of the truncate: if you want it to be MVCC safe, you should use the delete command.
What actually happens during a truncate is that the SST files (the “data files”) are dropped from each tablet.
If you pay close attention you will see the tablets still taking some space, which is because of the WAL files; the SST files are dropped after the truncate command, but the WAL files remain.
These will be garbage collected after some time and shrink in size.