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

moonlibs / config / 6400163160
69%
master: 68%

Build:
Build:
LAST BUILD BRANCH: refs/tags/0.7.2
DEFAULT BRANCH: master
Ran 04 Oct 2023 12:59AM UTC
Jobs 1
Files 2
Run time 1s
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

04 Oct 2023 12:49AM UTC coverage: 68.778% (-0.3%) from 69.066%
6400163160

push

github

Vladislav Grubov
feat: support config.enforce_ro(true|false)

  * This method is needed for autofailover mechanisms mainly to enforce
    read_only=true during loading phase of tarantool.

  Before this patch race condition existed between autofailover and
  moonlibs/config recovering behaviour.

  If master crashes but fastly restarts then it initiates long running
  loading phase. Master recovers as read_only=true but after returning
  from box.cfg moonlibs/config retrieves config from ETCD and rechecks
  read_only option.

  The race happens when autofailover changes configuration in ETCD, but
  master just in time returns from loading phase and applies oldest
  configuration. This leads cluster to split-brain.

  With method config.enforce_ro it is possible for external coordinator
  firstly enforce_ro on loading leader and receive approval that leader
  will not be promoted to rw until next reload configuration.

  tarantool is enforcable to be ro only when all of the following conditions
  are met:
	1) Tarantool is recovering from snapshot (it was already
	   bootstrapped)
	2) Client's code do not override box.cfg with passing args.boxcfg
	3) args.tidy_load is enabled (default, but can be overriden by
	   client)
	4) config uses ETCD to retreive topology.

12 of 12 new or added lines in 1 file covered. (100.0%)

619 of 900 relevant lines covered (68.78%)

108.02 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
65.23
-0.3% config.lua
Jobs
ID Job ID Ran Files Coverage
1 6400163160.1 04 Oct 2023 12:59AM UTC 2
68.78
GitHub Action Run
Source Files on build 6400163160
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ef0c4823 on github
  • Prev Build on fencing (#6171223143)
  • Next Build on fencing (#6400164489)
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