Skip to content

RC-1 returns MaxRetrtyException when connecting to client. Downgrading to beta connects fine #809

Closed
@bsee08

Description

@bsee08

I have an existing index that I try to connect to. My production environment has 3 nodes, my test environment has 1. Trying to connect to either fails with RC-1, but works on both when I connect with the beta. All nodes are running ElasticSearch 1.1. All nodes are pingable, running properly, and the index exists. Has the connection api changed? I don't see it mentioned in the docs.

static ElasticClient GetClient()
{
    var uriArray = (from string ip in ConfigurationManager.AppSettings["SearchNodes"].Split(',') select new Uri(ip)).ToArray();
    var connectionPool = new SniffingConnectionPool(uriArray);
    var settings = new ConnectionSettings(connectionPool, ConfigurationManager.AppSettings["IndexName"]);
    var client = new ElasticClient(settings);
    return client;
}

The code calling that function:

var esClient = GetClient();
bool validConnection = esClient.RootNodeInfo().ConnectionStatus.Success;  //This throws a MaxRetryException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions