• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 5555912697
88%

Build:
DEFAULT BRANCH: master
Ran 14 Jul 2023 04:01PM UTC
Jobs 1
Files 490
Run time 13s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Jul 2023 03:51PM UTC coverage: 86.098% (-0.003%) from 86.101%
5555912697

push

github

locker
box: allow to truncate temp and local spaces in ro mode

To achieve that, we bypass the read-only check for the _truncate system
space in box_process1() and perform it in the on_replace system trigger
instead, when we know which space is truncated.

Note, we have to move the check for insertion of a new record into the
_truncate system space before the read-only check in the on_replace
trigger callback; this is needed for initial recovery with a non-empty
_truncate space to work. While we are at it, let's use recovery_state to
make the check explicit.

Closes #5616

@TarantoolBot document
Title: Mention that temp and local spaces can be truncated in ro mode

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.

[^1]: https://www.tarantool.io/en/doc/latest/concepts/replication/repl_architecture/#replication-local

63458 of 115282 branches covered (55.05%)

10 of 10 new or added lines in 2 files covered. (100.0%)

95157 of 110522 relevant lines covered (86.1%)

2851003.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5555912697.1 14 Jul 2023 04:01PM UTC 0
86.1
GitHub Action Run
Source Files on build 5555912697
Detailed source file information is not available for this build.
  • Back to Repo
  • 054526ac on github
  • Prev Build on master (#5554291102)
  • Next Build on master (#5596612768)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc