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

tarantool / tarantool / 5287365697
86%
master: 88%

Build:
Build:
LAST BUILD BRANCH: tests_1Kb
DEFAULT BRANCH: master
Ran 16 Jun 2023 07:43AM UTC
Jobs 1
Files 476
Run time 12s
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

16 Jun 2023 07:43AM UTC coverage: 85.719% (-0.002%) from 85.721%
5287365697

push

github

sergepetrenko
replication: fix waiting for remote ballot updates during bootstrap

There was a problem in applier_wait_bootstrap_leader_uuid_is_set():
 * it didn't set an error cause when the ballot watcher was dead,
   leading to a segfault when trying to diag_add() to the cause.
 * it didn't expect the ballot watcher to exit without an error
   before the bootstrap leader uuid is known, hanging forever.

The first issue could be reproduced by trying to bootstrap a replicaset
consisting of both "old" (Tarantool 2.10 or less) and "new" instances.
Or by bootstrapping a replicaset consisting of "new" instances and
stopping some of them in a specific manner.

The second issue could be reproduced only by manually broadcasting an
empty "internal.ballot" event.

Fix both issues. The first one by setting an ER_UNKNOWN error when
the ballot watcher fiber is dead. And the second one by checking if the
ballot watcher has died during waiting for the ballot update.

The test only covers the first issue: the second one can only happen
with manual intervention and is hard to test: it involves broadcasting
an empty "internal.ballot" from the replica while it's still connecting
to remote nodes during an initial `box.cfg{}` call.

Closes #8757

NO_DOC=bugfix

(cherry picked from commit 1c25efb4b)

62097 of 114102 branches covered (54.42%)

93110 of 108622 relevant lines covered (85.72%)

3040383.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5287365697.1 16 Jun 2023 07:44AM UTC 0
85.72
GitHub Action Run
Source Files on build 5287365697
Detailed source file information is not available for this build.
  • Back to Repo
  • 7c057ec3 on github
  • Prev Build on release/2.11 (#5287219545)
  • Next Build on release/2.11 (#5288041851)
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