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

tarantool / tarantool / 13989083684
88%

Build:
DEFAULT BRANCH: master
Ran 21 Mar 2025 10:09AM UTC
Jobs 1
Files 518
Run time 2min
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

21 Mar 2025 09:53AM UTC coverage: 87.475% (-0.006%) from 87.481%
13989083684

push

github

Totktonada
config: don't choose learners as bootstrap leaders

This patch makes Tarantool configured in `replication.failover =
'supervised'` mode not choose instances marked as learners for the
failover coordinator as a bootstrap leader.

Marking instance as a learner means it shouldn't be appointed as a
master by the failover. Thus, the user would expect for the learners not
to become RW during the bootstrap too.

Example.
```
replication:
  failover: supervised

failover:
  replicasets:
    r-001:
      learners:
        - i-001

groups:
  g-001:
    replicasets:
      r-001:
        instances:
          i-001: {}
          i-002: {}
```
`i-002` will be chosen as a replicaset bootstrap leader.

If all non-anonymous instances are marked as learners the initial
cluster bootstrap fails since every instance starts in RO and none
of them might become the leader.

If user applies a config where all non-anonymous instances marked as
learners an alert is issued since this config is likely to be wrong.

```
log.lua:74 W> box_cfg.apply: cannot determine a bootstrap leader based
on the configuration. Make sure learners are properly configured
```

Closes #10842

NO_DOC=see tarantool/doc#4993

70077 of 123637 branches covered (56.68%)

103191 of 117966 relevant lines covered (87.48%)

2870500.23 hits per line

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
96.11
-0.01% src/box/relay.cc
1
95.78
-0.12% src/box/replication.cc
1
90.14
-0.08% src/box/vy_log.c
1
84.35
0.0% src/box/xlog.c
1
91.68
-0.11% src/lib/swim/swim.c
2
92.35
0.0% src/box/vinyl.c
2
95.21
-1.06% src/box/vy_range.c
2
84.53
-0.72% src/lib/core/coio.c
2
93.14
0.22% src/lib/core/fiber.c
2
85.15
-0.32% src/lib/core/say.c
2
94.22
-0.39% src/lua/fiber.c
3
91.3
-0.1% src/box/box.cc
3
90.9
-0.31% src/box/vy_scheduler.c
3
22.64
-0.06% src/lib/uri/uri_parser.c
4
93.31
-1.27% src/lib/swim/swim_io.c
Jobs
ID Job ID Ran Files Coverage
1 13989083684.1 21 Mar 2025 10:09AM UTC 518
87.48
GitHub Action Run
Source Files on build 13989083684
  • Tree
  • List 518
  • Changed 28
  • Source Changed 0
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • cd82d64b on github
  • Prev Build on master (#13986744788)
  • Next Build on master (#13998775641)
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