mirror of https://github.com/apache/cassandra
Check gossiper's HOST_ID during hinted handoff.
Patch by brandonwilliams, reviewed by jbellis for CASSANDRA-4384
This commit is contained in:
parent
309666b4dd
commit
add2d2db67
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue