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

tarantool / tarantool / 28806648384
88%

Build:
DEFAULT BRANCH: master
Ran 06 Jul 2026 05:07PM UTC
Jobs 1
Files 525
Run time 3min
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

06 Jul 2026 04:24PM UTC coverage: 87.747% (+0.02%) from 87.727%
28806648384

push

github

sergepetrenko
box: introduce recovery point API

Closes #11729

@TarantoolBot document
Title: Document recovery point API
Product: Tarantool
Since: 3.8

`box.backup.recovery_point.create()` is introduced to create
recovery point. Recovery point is point in xlog to which one can
truncate it to produce committed state at the time of point creation. The
recovery point has `replica_id`, `lsn` pair which unambiguously specify
a statement in xlog. The statement itself should be included on
truncation.

The result is table:

```
tarantool> box.backup.recovery_point.create()
---
- lsn: 46
  timestamp: 1782208661.7946
  replica_id: 1
...
```

Result fields are:
- `timestamp` - Unix-time of recovery point in seconds. It is less than
  or equal to commit time of recovery point entry and larger than or
equal to time of recovery point creation API call.
- `replica_id` - replica_id of recovery point statement in xlog.
- `lsn` - lsn of recovery point statement in xlog.

Create can also take a label as options parameter:

```
tarantool> box.backup.recovery_point.create({label = 'label-1'})
- lsn: 46
  timestamp: 1782208661.7946
  replica_id: 1
  label: label-1
```

Recovery points are persistent and replicated.

New `box.backup.info().recovery_points` field shows all created recovery
points that resides in xlogs of backup in progress.

```
tarantool> box.backup.recovery_point.create()
tarantool> box.backup.recovery_point.create({label = 'label-1'})
tarantool> box.backup.start()
tarantool> box.backup.info().recovery_points
---
- - lsn: 1
    timestamp: 1782208906.2023
    replica_id: 1
  - lsn: 3
    timestamp: 1782208908.4776
    replica_id: 1
    label: label-1
...
```

71027 of 119288 branches covered (59.54%)

96 of 108 new or added lines in 2 files covered. (88.89%)

268 existing lines in 12 files now uncovered.

106591 of 121475 relevant lines covered (87.75%)

1387667.42 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
91.26
0.06% src/box/box.cc

Coverage Regressions

Lines Coverage ∆ File
237
91.26
0.06% src/box/box.cc
9
96.78
0.28% src/box/lua/init.c
7
97.05
-0.61% src/lib/msgpuck/msgpuck.h
3
88.21
-0.19% src/box/vy_run.c
2
94.32
-0.29% src/box/memtx_space.c
2
85.98
0.11% src/box/xlog.c
2
94.07
-0.09% src/lib/core/fiber.c
2
91.56
-0.22% src/lib/swim/swim.c
1
96.7
0.35% src/box/relay.cc
1
92.64
0.09% src/box/vinyl.c
1
89.66
0.18% src/box/xlog.h
1
95.4
-1.15% src/lib/core/histogram.c
Jobs
ID Job ID Ran Files Coverage
1 28806648384.1 06 Jul 2026 05:07PM UTC 525
87.75
GitHub Action Run
Source Files on build 28806648384
  • Tree
  • List 525
  • Changed 24
  • Source Changed 0
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 73b2b4bf on github
  • Prev Build on master (#28806539151)
  • Next Build on master (#28852866344)
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