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

mp911de / lettuce / 897
94%
master: 92%

Build:
Build:
LAST BUILD BRANCH: 5.x
DEFAULT BRANCH: master
Ran 12 Jun 2016 07:27PM UTC
Jobs 1
Files 172
Run time 8s
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
897

push

travis-ci

mp911de
Perform multiple connection attempts when connecting a Redis Cluster #244

Motivation: When the first node in the partition collection is down the RedisClusterClient cannot connect anymore to the Cluster

The RedisClusterClient uses every node from the partition list as candidate for a connection attempt and hence uses the number of partition entries as connection attempts. The first successful attempt is used as the main cluster connection. If all nodes fail to connect the connection method is terminated with the first causing exception.

Modifications:
* Multiple connection attempts
* Use round-robin for connect/reconnect the main cluster connection
* Aligned logging when a connection is not possible
* New cluster node for test
* Reset connections that failed to connect instead of closing them

Backport of #164.

201 of 201 new or added lines in 8 files covered. (100.0%)

6563 of 7004 relevant lines covered (93.7%)

0.94 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/main/java/com/lambdaworks/redis/RedisURI.java
2
100.0
src/main/java/com/lambdaworks/redis/AbstractRedisClient.java
2
100.0
src/main/java/com/lambdaworks/redis/cluster/TopologyComparators.java
4
100.0
src/main/java/com/lambdaworks/redis/RedisClient.java
11
100.0
src/main/java/com/lambdaworks/redis/cluster/RedisClusterClient.java

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/main/java/com/lambdaworks/redis/RedisClient.java
1
100.0
src/main/java/com/lambdaworks/redis/pubsub/PubSubCommandHandler.java
2
100.0
src/main/java/com/lambdaworks/redis/cluster/RedisClusterClient.java
8
100.0
src/main/java/com/lambdaworks/redis/AbstractRedisClient.java
8
100.0
src/main/java/com/lambdaworks/redis/protocol/ConnectionWatchdog.java
Jobs
ID Job ID Ran Files Coverage
1 897.1 12 Jun 2016 07:27PM UTC 0
93.7
Travis Job 897.1
Source Files on build 897
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #897
  • 196914e6 on github
  • Prev Build on 3.x (#887)
  • Next Build on 3.x (#898)
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