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

tarantool / tarantool / 14101952570
87%
master: 88%

Build:
Build:
LAST BUILD BRANCH: skaplun/bump-luajit-2.11
DEFAULT BRANCH: master
Ran 27 Mar 2025 09:06AM UTC
Jobs 1
Files 514
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: 87.39% (+0.01%) from 87.38%
14101952570

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)

68882 of 122119 branches covered (56.41%)

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

20 existing lines in 11 files now uncovered.

101544 of 116196 relevant lines covered (87.39%)

1944119.72 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
89.36
-0.04% src/box/memtx_engine.cc

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.94
-0.18% src/box/relay.cc
1
95.15
-0.13% src/box/replication.cc
1
92.24
0.09% src/box/vinyl.c
1
87.5
-1.59% src/box/xlog.h
1
97.41
-0.86% src/lib/vclock/vclock.c
2
95.83
0.05% src/box/iproto.cc
2
93.87
0.03% src/box/xrow_update_field.c
2
84.53
-0.72% src/lib/core/coio.c
2
92.93
-0.1% src/lib/core/fiber.c
3
97.26
0.0% src/lib/msgpuck/msgpuck.h
4
93.31
-1.27% src/lib/swim/swim_io.c
Jobs
ID Job ID Ran Files Coverage
1 14101952570.1 27 Mar 2025 09:06AM UTC 514
87.39
GitHub Action Run
Source Files on build 14101952570
  • Tree
  • List 514
  • Changed 28
  • Source Changed 0
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • c9333356 on github
  • Prev Build on release/3.2 (#14084655932)
  • Next Build on release/3.2 (#14104121292)
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