Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Avoid losing a host when adding to retry service hector-client#439
Browse files Browse the repository at this point in the history
  • Loading branch information
patricioe committed Mar 17, 2012
1 parent db74f37 commit 7055e9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ See object-mapper/CHANGELOG for HOM specifics
Made Composite Serializable
Added Composite to TypeInferringSerializer
Add start key to KeyIterator #419
Fix losing a host during Retry Down host service #439

1.0-3
=====
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ public void add(final CassandraHost cassandraHost) {
@Override
public void run() {
if(downedHostQueue.contains(cassandraHost) && verifyConnection(cassandraHost)) {
connectionManager.addCassandraHost(cassandraHost);
downedHostQueue.remove(cassandraHost);
if (connectionManager.addCassandraHost(cassandraHost)) {
downedHostQueue.remove(cassandraHost);
}
return;
}
}
Expand Down

0 comments on commit 7055e9f

Please sign in to comment.