You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by bl...@apache.org on 2021/07/08 12:58:35 UTC

[cassandra] branch trunk updated: Remove check on gossip status from DynamicEndpointSnitch::updateScores

This is an automated email from the ASF dual-hosted git repository.

blerer pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/trunk by this push:
     new fbf1010  Remove check on gossip status from DynamicEndpointSnitch::updateScores
fbf1010 is described below

commit fbf101072a65a240eb4831583aeb72e97078737f
Author: artsiom <a....@godeltech.com>
AuthorDate: Fri Aug 17 17:13:54 2018 +0300

    Remove check on gossip status from DynamicEndpointSnitch::updateScores
    
    patch by Artsiom Yudovin; reviewed by Benjamin Lerer and Brandon Williams
    for CASSANDRA-11671
---
 CHANGES.txt                                                      | 1 +
 src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGES.txt b/CHANGES.txt
index 64e32c5..7108475 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 4.1
+ * Remove check on gossip status from DynamicEndpointSnitch::updateScores (CASSANDRA-11671)
  * Fix AbstractReadQuery::toCQLString not returning valid CQL (CASSANDRA-16510)
  * Log when compacting many tombstones (CASSANDRA-16780)
  * Display bytes per level in tablestats for LCS tables (CASSANDRA-16799)
diff --git a/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java b/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java
index 976e1da..cdb2236 100644
--- a/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java
+++ b/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java
@@ -271,7 +271,7 @@ public class DynamicEndpointSnitch extends AbstractEndpointSnitch implements Lat
 
     private void updateScores() // this is expensive
     {
-        if (!StorageService.instance.isGossipActive())
+        if (!StorageService.instance.isInitialized())
             return;
         if (!registered)
         {

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org