/** used by tests */ public void clearUnsafe() { lock.writeLock().lock(); try { bootstrapTokens.clear(); tokenToEndpointMap.clear(); topology.clear(); leavingEndpoints.clear(); pendingRanges.clear(); endpointToHostIdMap.clear(); invalidateCachedRings(); } finally { lock.writeLock().unlock(); } }
/** used by tests */ public void clearUnsafe() { bootstrapTokens.clear(); tokenToEndPointMap.clear(); leavingEndPoints.clear(); pendingRanges.clear(); }