public boolean isGossipRunning() { return Gossiper.instance.isEnabled(); }
public boolean isGossipRunning() { return Gossiper.instance.isEnabled(); }
public boolean isGossipRunning() { return Gossiper.instance.isEnabled(); }
public boolean isGossipRunning() { return Gossiper.instance.isEnabled(); }
public void doVerb(MessageIn message, int id) { if (!Gossiper.instance.isEnabled()) { logger.debug("Ignoring shutdown message from {} because gossip is disabled", message.from); return; } Gossiper.instance.markAsShutdown(message.from); }
public void doVerb(MessageIn message, int id) { if (!Gossiper.instance.isEnabled()) { logger.debug("Ignoring shutdown message from {} because gossip is disabled", message.from); return; } Gossiper.instance.markAsShutdown(message.from); }
public void doVerb(MessageIn message, int id) { if (!Gossiper.instance.isEnabled()) { logger.debug("Ignoring shutdown message from {} because gossip is disabled", message.from); return; } Gossiper.instance.markAsShutdown(message.from); }
public void doVerb(MessageIn message, int id) { if (!Gossiper.instance.isEnabled()) { logger.debug("Ignoring shutdown message from {} because gossip is disabled", message.from); return; } Gossiper.instance.markAsShutdown(message.from); }
/** * The schema version to announce. * This will be either the "real" schema version including the {@code cdc} column, * if no node in the cluster is running at 3.0, or a 3.0 compatible * schema version, with the {@code cdc} column excluded, if at least one node is * running 3.0. * * @return "current" schema version */ public UUID getVersion() { return Gossiper.instance.isEnabled() && Gossiper.instance.isAnyNodeOn30() ? altVersion : version; }
/** * The schema version to announce. * This will be either the "real" schema version including the {@code cdc} column, * if no node in the cluster is running at 3.0, or a 3.0 compatible * schema version, with the {@code cdc} column excluded, if at least one node is * running 3.0. * * @return "current" schema version */ public UUID getVersion() { return Gossiper.instance.isEnabled() && Gossiper.instance.isAnyNodeOn30() ? altVersion : version; }
/** * The schema version to announce. * This will be either the "real" schema version including the {@code cdc} column, * if no node in the cluster is running at 3.0, or a 3.0 compatible * schema version, with the {@code cdc} column excluded, if at least one node is * running 3.0. * * @return "current" schema version */ public UUID getVersion() { return Gossiper.instance.isEnabled() && Gossiper.instance.isAnyNodeOn30() ? altVersion : version; }
public void doVerb(MessageIn<GossipDigestAck2> message, int id) { if (logger.isTraceEnabled()) { InetAddress from = message.from; logger.trace("Received a GossipDigestAck2Message from {}", from); } if (!Gossiper.instance.isEnabled()) { if (logger.isTraceEnabled()) logger.trace("Ignoring GossipDigestAck2Message because gossip is disabled"); return; } Map<InetAddress, EndpointState> remoteEpStateMap = message.payload.getEndpointStateMap(); /* Notify the Failure Detector */ Gossiper.instance.notifyFailureDetector(remoteEpStateMap); Gossiper.instance.applyStateLocally(remoteEpStateMap); } }
public void doVerb(MessageIn<GossipDigestAck2> message, int id) { if (logger.isTraceEnabled()) { InetAddress from = message.from; logger.trace("Received a GossipDigestAck2Message from {}", from); } if (!Gossiper.instance.isEnabled()) { if (logger.isTraceEnabled()) logger.trace("Ignoring GossipDigestAck2Message because gossip is disabled"); return; } Map<InetAddress, EndpointState> remoteEpStateMap = message.payload.getEndpointStateMap(); /* Notify the Failure Detector */ Gossiper.instance.notifyFailureDetector(remoteEpStateMap); Gossiper.instance.applyStateLocally(remoteEpStateMap); } }
public void doVerb(MessageIn<GossipDigestAck2> message, int id) { if (logger.isTraceEnabled()) { InetAddress from = message.from; logger.trace("Received a GossipDigestAck2Message from {}", from); } if (!Gossiper.instance.isEnabled()) { if (logger.isTraceEnabled()) logger.trace("Ignoring GossipDigestAck2Message because gossip is disabled"); return; } Map<InetAddress, EndpointState> remoteEpStateMap = message.payload.getEndpointStateMap(); /* Notify the Failure Detector */ Gossiper.instance.notifyFailureDetector(remoteEpStateMap); Gossiper.instance.applyStateLocally(remoteEpStateMap); } }
public void doVerb(MessageIn<GossipDigestAck2> message, int id) { if (logger.isTraceEnabled()) { InetAddress from = message.from; logger.trace("Received a GossipDigestAck2Message from {}", from); } if (!Gossiper.instance.isEnabled()) { if (logger.isTraceEnabled()) logger.trace("Ignoring GossipDigestAck2Message because gossip is disabled"); return; } Map<InetAddress, EndpointState> remoteEpStateMap = message.payload.getEndpointStateMap(); /* Notify the Failure Detector */ Gossiper.instance.notifyFailureDetector(remoteEpStateMap); Gossiper.instance.applyStateLocally(remoteEpStateMap); } }
if (Gossiper.instance.isEnabled() && (sourceState == null || !sourceState.isAlive())) throw new RuntimeException("A node required to move the data consistently is down (" + sourceIp + "). " + "If you wish to move the data from a potentially inconsistent replica, restart the node with -Dcassandra.consistent.rangemovement=false");
private void publishX1(boolean force) throws JsonGenerationException, JsonMappingException, IOException { if (Gossiper.instance.isEnabled() || force) { if (searchEnabled.get()) { String newValue = jsonMapper.writerWithType(indexShardStateTypeReference).writeValueAsString(localShardStateMap); Gossiper.instance.addLocalApplicationState(ELASTIC_SHARDS_STATES, StorageService.instance.valueFactory.datacenter(newValue)); } else { // publish an empty map, so other nodes will see local shards UNASSIGNED. Gossiper.instance.addLocalApplicationState(ELASTIC_SHARDS_STATES, StorageService.instance.valueFactory.datacenter("{}")); } } }
public void publishX2(ClusterState clusterState, boolean force) { String clusterStateSting = clusterState.metaData().clusterUUID() + '/' + clusterState.metaData().version(); if (Gossiper.instance.isEnabled() || force) { Gossiper.instance.addLocalApplicationState(ELASTIC_META_DATA, StorageService.instance.valueFactory.datacenter(clusterStateSting)); if (logger.isTraceEnabled()) logger.trace("X2={} published in gossip state", clusterStateSting); } }
if (Gossiper.instance.isEnabled() && (sourceState == null || !sourceState.isAlive())) throw new RuntimeException("A node required to move the data consistently is down (" + sourceIp + "). " + "If you wish to move the data from a potentially inconsistent replica, restart the node with -Dcassandra.consistent.rangemovement=false");
public void run() { double report = -1; try { report = getIOWait(); } catch (IOException e) { // ignore; if (FBUtilities.hasProcFS()) logger.warn("Couldn't read /proc/stats"); } if (report == -1d) report = compaction_severity.get(); if (!Gossiper.instance.isEnabled()) return; report += manual_severity.get(); // add manual severity setting. VersionedValue updated = StorageService.instance.valueFactory.severity(report); Gossiper.instance.addLocalApplicationState(ApplicationState.SEVERITY, updated); } }