Mention that temp and local spaces can be truncated in ro mode
Nobody has claimed this yet.
- Dominant language
- CSS
- Stars
- 15
- Forks
- 49
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 3
Description
DML operations on temporary and local spaces can be performed even if the instance is in the read-only mode, but DDL operations (such as alter) are forbidden in this case^1. Technically, truncate is a DDL operation so initially it was forbidden as well. However, it should be safe to perform this operation on a temporary or local space because logically it only modifies the data stored in the space (like DML) and it isn't replicated (see tarantool/tarantool#4263). So starting from Tarantool 2.11.1 we allow users to truncate temporary spaces in the read-only mode.
Requested by @locker in https://github.com/tarantool/tarantool/commit/054526ac8472d005ae7468774f06290597278a1d.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the replication and read-only documentation page linked in the issue, then review the section describing DML and DDL on temporary and local spaces. Update the relevant explanation to cover the read-only truncation behavior introduced in Tarantool 2.11.1, and verify the documentation build and referenced links.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100