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

tarantool / tarantool / 14101190699
88%

Build:
DEFAULT BRANCH: master
Ran 27 Mar 2025 07:46AM UTC
Jobs 1
Files 518
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 07:32AM UTC coverage: 87.471% (-0.01%) from 87.484%
14101190699

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

70085 of 123659 branches covered (56.68%)

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

46 existing lines in 17 files now uncovered.

103196 of 117977 relevant lines covered (87.47%)

2868589.77 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
90.88
-0.05% src/box/memtx_engine.cc

Uncovered Existing Lines

Lines Coverage ∆ File
1
88.55
-0.6% src/box/engine.c
1
95.31
-1.56% src/box/engine.h
1
90.14
-0.08% src/box/vy_log.c
1
95.74
1.06% src/box/vy_range.c
1
92.93
-0.01% src/lib/core/fiber.c
2
95.05
-0.62% src/box/raft.c
2
93.95
-0.5% src/box/vy_write_iterator.c
2
94.44
0.22% src/box/xrow_update_field.c
2
84.53
-0.72% src/lib/core/coio.c
2
85.71
-9.52% src/lib/core/tt_sigaction.c
2
97.05
-0.2% src/lib/msgpuck/msgpuck.h
3
92.53
0.0% src/box/vinyl.c
3
90.9
-0.31% src/box/vy_scheduler.c
4
87.44
-0.27% src/box/vy_run.c
4
93.31
-1.27% src/lib/swim/swim_io.c
7
95.2
-1.46% src/box/vy_read_iterator.c
8
61.11
-2.86% src/lib/core/fio.c
Jobs
ID Job ID Ran Files Coverage
1 14101190699.1 27 Mar 2025 07:46AM UTC 518
87.47
GitHub Action Run
Source Files on build 14101190699
  • Tree
  • List 518
  • Changed 32
  • Source Changed 0
  • Coverage Changed 32
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • d590c725 on github
  • Prev Build on master (#14084552938)
  • Next Build on master (#14101220691)
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