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

tarantool / tarantool / 14101951805
86%
master: 88%

Build:
Build:
LAST BUILD BRANCH: mandesero/asan-build-with-gc64-on
DEFAULT BRANCH: master
Ran 27 Mar 2025 08:37AM UTC
Jobs 1
Files 479
Run time 1min
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

27 Mar 2025 08:21AM UTC coverage: 86.084% (+0.01%) from 86.074%
14101951805

push

github

sergepetrenko
gc: use *.snap st_mtime to schedule after restart

Introduce the `timestamp` field in `gc_checkpoint` so now `gc.{c,h}` are
aware of actual times of checkpoints, which is important since this
subsystem is responsible for scheduling. Now, one can track the unix time
of a new checkpoint with new `timestamp` argument of `gc_add_checkpoint`.
This change allows us to track previous checkpoints made before the
server restart and even `checkpoint_interval` value reconfiguring.

This approach was chosen instead of just scanning the `snap_dir` in
`gc.c` because it was engine-independent. One may also notice that even
if the actual time after the last snapshot before the restart is greater
than `2 * checkpoint_interval` we won't start checkpointing immediately
because that may cause high disk load in case of multiple instances. So
in this case we just schedule a checkpoint at a random moment in the
first `checkpoint_interval` seconds after the restart. It seems like
even with this scheduling strategy a snapshot will be eventually created
even during constant restarting.

Fixes #9820
NO_DOC=bugfix

(cherry picked from commit d590c7252)

63479 of 114824 branches covered (55.28%)

16 of 17 new or added lines in 3 files covered. (94.12%)

26 existing lines in 11 files now uncovered.

94424 of 109688 relevant lines covered (86.08%)

1907966.27 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
89.44
-0.56% src/box/memtx_engine.cc

Uncovered Existing Lines

Lines Coverage ∆ File
1
87.21
0.59% src/box/box.cc
1
92.09
0.0% src/box/vinyl.c
1
89.67
0.21% src/box/vy_scheduler.c
1
96.0
-4.0% src/lib/core/trigger.h
1
95.24
-1.59% src/lib/small/include/small/quota.h
1
91.45
-0.11% src/lib/swim/swim.c
3
90.01
-0.23% src/box/applier.cc
3
97.6
-0.23% src/box/memtx_tx.c
4
91.68
-0.67% src/box/txn_limbo.c
5
89.44
-0.56% src/box/memtx_engine.cc
5
93.71
-0.83% src/box/replication.cc
Jobs
ID Job ID Ran Files Coverage
1 14101951805.1 27 Mar 2025 08:37AM UTC 479
86.08
GitHub Action Run
Source Files on build 14101951805
  • Tree
  • List 479
  • Changed 19
  • Source Changed 0
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • a6b1ed18 on github
  • Prev Build on release/2.11 (#14084675805)
  • Next Build on release/2.11 (#14104120726)
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