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

moonlibs / config
69%
master: 68%

Build:
Build:
LAST BUILD BRANCH: refs/tags/0.7.2
DEFAULT BRANCH: master
Repo Added 13 Sep 2023 10:19AM UTC
Files 2
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

LAST BUILD ON BRANCH refs/tags/0.7.0
branch: refs/tags/0.7.0
CHANGE BRANCH
x
Reset
  • refs/tags/0.7.0
  • ci
  • fencing
  • fix-ctl-start
  • master
  • override-config
  • refs/tags/0.7.1
  • refs/tags/0.7.2

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

push

github

Vladislav Grubov
feat: support config.enforce_ro()

  * 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.04 hits per line

Relevant lines Covered
Build:
Build:
900 RELEVANT LINES 619 COVERED LINES
108.04 HITS PER LINE
Source Files on refs/tags/0.7.0
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
6559452331 refs/tags/0.7.0 feat: support config.enforce_ro() * 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... push 18 Oct 2023 10:20AM UTC Vladislav Grubov github
68.78
See All Builds (24)
  • Repo on GitHub
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

© 2025 Coveralls, Inc