You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "C. Scott Andreas (JIRA)" <ji...@apache.org> on 2018/11/19 06:02:01 UTC
[jira] [Updated] (CASSANDRA-7439) There are a number of places
where Gossiper.instance.getEndpointStateForEndpoint is not checked for null
[ https://issues.apache.org/jira/browse/CASSANDRA-7439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
C. Scott Andreas updated CASSANDRA-7439:
----------------------------------------
Component/s: Distributed Metadata
> There are a number of places where Gossiper.instance.getEndpointStateForEndpoint is not checked for null
> --------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-7439
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7439
> Project: Cassandra
> Issue Type: Task
> Components: Distributed Metadata
> Reporter: Mike Adamson
> Priority: Minor
>
> In most places the getEndpointStateForEndpoint method is null checked but in a number of places it isn't.
> Without testing each individual call point it is difficult to tell from the context whether the state will be null or not.
> In this case wouldn't it make sense to null every call to this method to avoid race conditions and NPEs
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org