frankgh opened a new pull request #1438:
URL: https://github.com/apache/cassandra/pull/1438


   A NullPointerException is possible when the 
StartupClusterConnectivityChecker fails,
   and one of the missing peers has been added/discovered after the 
initialization of
   the map between peers and datacenters. This is causing in some rare 
instances the
   NullPointerException because an "element cannot be mapped to a null key".
   
   This commit prevents the NullPointerException, by checking the map first for 
the DC
   and if it's null, it calls the `getDatacenterSource` function, which is a 
call to
   the `DatabaseDescriptor.getEndpointSnitch()::getDatacenter` method.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to