Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

NullReferenceException on corrupt peer when connecting #55

Open
gyorgy-giczi opened this issue Feb 3, 2016 · 0 comments
Open

NullReferenceException on corrupt peer when connecting #55

gyorgy-giczi opened this issue Feb 3, 2016 · 0 comments

Comments

@gyorgy-giczi
Copy link

Hi,

We just ran into an issue during a C* meaintenence, when selecting from system.peers resulted some null values in DC and rack columns, which caused Cluster.GetNodeFromDataReader to return null, which caused NullReferenceException in Cluster.InDiscoveryScope(), so finally CqlConnection.Open() failed. I suggest to add the following check to Cluster.InDiscoveryScope()

    private bool InDiscoveryScope(Node reference, Node target, DiscoveryScope discoveryScope)
    {
        if (target == null)
        {
            return false;
        }

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant