You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (Jira)" <ji...@apache.org> on 2021/07/01 13:14:00 UTC
[jira] [Commented] (CASSANDRA-11671) Remove check on gossip status
from DynamicEndpointSnitch::updateScores
[ https://issues.apache.org/jira/browse/CASSANDRA-11671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17372781#comment-17372781 ]
Brandon Williams commented on CASSANDRA-11671:
----------------------------------------------
LGTM, +1.
> Remove check on gossip status from DynamicEndpointSnitch::updateScores
> ----------------------------------------------------------------------
>
> Key: CASSANDRA-11671
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11671
> Project: Cassandra
> Issue Type: Improvement
> Components: Legacy/Coordination
> Reporter: Sam Tunnicliffe
> Assignee: Artsiom Yudovin
> Priority: Low
> Labels: pull-request-available
> Fix For: 4.x
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> It seems that historically there were initialization ordering issues which affected DES and StorageService (CASSANDRA-1756) and so a condition was added to DES::updateScores() to ensure that SS had finished setup. In fact, the check was actually testing whether gossip was active or not. CASSANDRA-10134 preserved this behaviour, but it seems likely that the check can be removed from DES completely now. If not, it can at least be switched to use SS::isInitialized() which post CASSANDRA-10134 actually reports what it's name suggests.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org