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

mp911de / lettuce / 1141
88%
master: 92%

Build:
Build:
LAST BUILD BRANCH: 5.x
DEFAULT BRANCH: master
Ran 22 Sep 2016 11:11AM UTC
Jobs 2
Files 251
Run time 18s
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

pending completion
1141

push

travis-ci

mp911de
Add support for topology consensus #355

Previously, cluster topology refreshing could get stuck on a node that was previously discovered but got removed from the cluster. This was possible because multiple views were obtained and any arbitrary topology view was chosen.

Lettuce now implements two consensus algorithms: Healthy Majority and Known Majority. Healthy Majority is applied on the very first topology retrieval, Known Majority for all subsequent topology refreshes.

Healthy Majority votes for topology views containing the most nodes with healthy flags (without FAIL/PFAIL/NOADDR flags) to use a most healthy view. Known Majority selects topology views that contain nodes that were previously known. This consensus works for adding and removing nodes one-by-one or even multiple nodes. In case a cluster is split into even partitions the client can still get stuck on either side, but that issue can be solved by disabling dynamic refresh sources and specifying stable cluster seed nodes.

45 of 45 new or added lines in 3 files covered. (100.0%)

10158 of 11102 relevant lines covered (91.5%)

1.83 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
100.0
src/main/java/com/lambdaworks/redis/cluster/PartitionsConsensusImpl.java

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/main/java/com/lambdaworks/redis/cluster/NodeSelectionInvocationHandler.java
Jobs
ID Job ID Ran Files Coverage
1 1141.1 (PROFILE=netty-40) 22 Sep 2016 11:11AM UTC 0
91.28
Travis Job 1141.1
2 1141.2 (PROFILE=netty-41) 22 Sep 2016 11:11AM UTC 0
91.38
Travis Job 1141.2
Source Files on build 1141
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1141
  • 4f677a22 on github
  • Prev Build on 5.x (#1137)
  • Next Build on 5.x (#1142)
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