scylla-jmx/src/main/java/org/apache/cassandra/gms
Amnon Heiman 4e4589ba6f FailureDetector: check that states is not null before use
When a node is part of a cluster but is down (like in the situation where
a cluster is taken down and up again but not all nodes are up). There is
no application_state information for that node.

This patch check that the information exists before using it to prevent
null pointer exception.

After this patch, a call to nodetool gossipinfo would return the
available information without failing.

See scylladb/scylla#3330

Signed-off-by: Amnon Heiman <amnon@scylladb.com>
Message-Id: <20180329115345.29357-1-amnon@scylladb.com>
2018-03-29 15:18:48 +03:00
..
ApplicationState.java Code formatting + source cleanup (eclipse) 2016-10-24 11:43:52 +00:00
EndpointState.java Code formatting + source cleanup (eclipse) 2016-10-24 11:43:52 +00:00
FailureDetector.java FailureDetector: check that states is not null before use 2018-03-29 15:18:48 +03:00
FailureDetectorMBean.java Code formatting + source cleanup (eclipse) 2016-10-24 11:43:52 +00:00
Gossiper.java Rework gms beans 2016-10-24 11:43:51 +00:00
GossiperMBean.java Code formatting + source cleanup (eclipse) 2016-10-24 11:43:52 +00:00
HeartBeatState.java Code formatting + source cleanup (eclipse) 2016-10-24 11:43:52 +00:00