cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [4/6] git commit: Check gossiper's HOST_ID during hinted handoff. Patch by brandonwilliams, reviewed by jbellis for CASSANDRA-4384
Date Thu, 15 Nov 2012 17:58:14 GMT
Check gossiper's HOST_ID during hinted handoff.
Patch by brandonwilliams, reviewed by jbellis for CASSANDRA-4384


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/add2d2db
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/add2d2db
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/add2d2db

Branch: refs/heads/trunk
Commit: add2d2db67a34efdf2f12ac59fd129d6b16ee987
Parents: 309666b
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Thu Nov 15 11:57:27 2012 -0600
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Thu Nov 15 11:57:27 2012 -0600

----------------------------------------------------------------------
 .../apache/cassandra/db/HintedHandOffManager.java  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/add2d2db/src/java/org/apache/cassandra/db/HintedHandOffManager.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/HintedHandOffManager.java b/src/java/org/apache/cassandra/db/HintedHandOffManager.java
index a8b14b2..476af88 100644
--- a/src/java/org/apache/cassandra/db/HintedHandOffManager.java
+++ b/src/java/org/apache/cassandra/db/HintedHandOffManager.java
@@ -279,7 +279,7 @@ public class HintedHandOffManager implements HintedHandOffManagerMBean
         // 5. Do major compaction to clean up all deletes etc.
 
         // find the hints for the node using its token.
-        UUID hostId = StorageService.instance.getTokenMetadata().getHostId(endpoint);
+        UUID hostId = Gossiper.instance.getHostId(endpoint);
         logger.info("Started hinted handoff for host: {} with IP: {}", hostId, endpoint);
         final ByteBuffer hostIdBytes = ByteBuffer.wrap(UUIDGen.decompose(hostId));
         DecoratedKey epkey =  StorageService.getPartitioner().decorateKey(hostIdBytes);


Mime
View raw message