Skip to content

Partially failure nodes handled as error on start [JIRA: CLIENTS-747] #131

@mogadanez

Description

@mogadanez

I have a cluster with several nodes node1.... node5
When one of the node becomes down in runtime - all works fine, client retry another host when fail.
But on start it call callback with error.
So, by having err in callback i cannot say my cluster operational or not, i need do something like

new Riak.Client(...., function (err, client) {
if (err && ( !client.cluster || !client.cluster.state ) ) {
throw err ;
}
// can work normally
});
not sure this is bad, but need note it in doc probably.
In our environment we use docker widely, and start/stop happens very often and I was catch this issue during daily backup when one one goes to down.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions