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.