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

mp911de / lettuce / 1136
92%

Build:
DEFAULT BRANCH: master
Ran 16 Sep 2016 04:03PM UTC
Jobs 2
Files 247
Run time 1698min
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
1136

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.

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

10154 of 10930 relevant lines covered (92.9%)

1.85 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/AbstractRedisReactiveCommands.java
Jobs
ID Job ID Ran Files Coverage
1 1136.1 (PROFILE=netty-40) 16 Sep 2016 04:03PM UTC 0
92.67
Travis Job 1136.1
2 1136.2 (PROFILE=netty-41) 17 Sep 2016 08:22PM UTC 0
92.69
Travis Job 1136.2
Source Files on build 1136
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1136
  • 5126790b on github
  • Prev Build on master (#1134)
  • Next Build on master (#1144)
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