Check gossiper's HOST_ID during hinted handoff.

Patch by brandonwilliams, reviewed by jbellis for CASSANDRA-4384
This commit is contained in:
Brandon Williams 2012-11-15 11:57:27 -06:00
parent 309666b4dd
commit add2d2db67
1 changed files with 1 additions and 1 deletions

View File

@ -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);