simple script stopped to work after 1.8.1 to 1.9+ upgrade
mogadanez opened this issue · comments
Aleksandr Popov commented
var Riak = require('basho-riak-client');
var client = new Riak.Client( ["localhost:8087"] );
client.listKeys( {bucket: "test-bucket", stream: false, bucketType: "test"}, function(err,data){
if ( err )
throw err;
console.log( data)
})
now it reports
[RiakCluster] starting.
[RiakNode] (localhost:8087) starting
[RiakConnection] using cork() / uncork()
[RiakCluster] execute command: RpbListKeysReq remaining tries: 3.
test.js:26
throw err;
^
No RiakNodes available to execute command.
As I understand start callback is required now, but then need validate that it is provided, or implement "sync" logic inside constructor if it is not provided
Luke Bakken commented