Skip to content

Error: Connection closed while executing command when doing secondaryIndexQueryAsync [JIRA: CLIENTS-1093] #187

@mogadanez

Description

@mogadanez
  • Riak Node.js Client version
    2.4
  • Node.js version
    6.5.0
  • Riak version
    2.14
  • Operating System / Distribution & Version
    Debian Jessie stable
  • Riak error.log file, if applicable

  • What commands were being executed during the error
  var requestOptions  = {  bucketType: options.bucketType, bucket: bucket, indexName: "prop1_bin", indexKey:"value", stream: false}
 client.secondaryIndexQueryAsync(requestOptions)

got Error:

	Error: Connection closed while executing command
    at maybeWrapAsError (/var/proofme/node_modules/bluebird/js/main/util.js:70:12)
    at SecondaryIndexQuery.callback (/var/proofme/node_modules/bluebird/js/main/promise_resolver.js:41:50)
    at SecondaryIndexQuery.CommandBase._callback (/var/proofme/node_modules/basho-riak-client/lib/commands/commandbase.js:75:19)
    at SecondaryIndexQuery.CommandBase.onError (/var/proofme/node_modules/basho-riak-client/lib/commands/commandbase.js:172:10)
    at /var/proofme/node_modules/basho-riak-client/lib/core/riaknode.js:582:21
    at RiakNode._maybeRetryCommand (/var/proofme/node_modules/basho-riak-client/lib/core/riaknode.js:596:9)
    at RiakNode._connectionClosed (/var/proofme/node_modules/basho-riak-client/lib/core/riaknode.js:581:14)
    at emitTwo (events.js:106:13)
    at RiakConnection.emit (events.js:191:7)
    at RiakConnection._emitAndClose (/var/proofme/node_modules/basho-riak-client/lib/core/riakconnection.js:109:18)
    at RiakConnection._connHandleTimeout (/var/proofme/node_modules/basho-riak-client/lib/core/riakconnection.js:125:14)
    at Socket.g (events.js:291:16)
    at emitNone (events.js:86:13)
    at Socket.emit (events.js:185:7)
    at Socket._onTimeout (net.js:339:8)
    at ontimeout (timers.js:365:14)
    at tryOnTimeout (timers.js:237:5)
    at Timer.listOnTimeout (timers.js:207:5)
Cause: Error: Connection closed while executing command
    at maybeWrapAsError (/var/proofme/node_modules/bluebird/js/main/util.js:70:12)
    at SecondaryIndexQuery.callback (/var/proofme/node_modules/bluebird/js/main/promise_resolver.js:41:50)
    at SecondaryIndexQuery.CommandBase._callback (/var/proofme/node_modules/basho-riak-client/lib/commands/commandbase.js:75:19)
    at SecondaryIndexQuery.CommandBase.onError (/var/proofme/node_modules/basho-riak-client/lib/commands/commandbase.js:172:10)
    at /var/proofme/node_modules/basho-riak-client/lib/core/riaknode.js:582:21
    at RiakNode._maybeRetryCommand (/var/proofme/node_modules/basho-riak-client/lib/core/riaknode.js:596:9)
    at RiakNode._connectionClosed (/var/proofme/node_modules/basho-riak-client/lib/core/riaknode.js:581:14)
    at emitTwo (events.js:106:13)
    at RiakConnection.emit (events.js:191:7)
    at RiakConnection._emitAndClose (/var/proofme/node_modules/basho-riak-client/lib/core/riakconnection.js:109:18)
    at RiakConnection._connHandleTimeout (/var/proofme/node_modules/basho-riak-client/lib/core/riakconnection.js:125:14)
    at Socket.g (events.js:291:16)
    at emitNone (events.js:86:13)
    at Socket.emit (events.js:185:7)
    at Socket._onTimeout (net.js:339:8)
    at ontimeout (timers.js:365:14)
    at tryOnTimeout (timers.js:237:5)
    at Timer.listOnTimeout (timers.js:207:5)
  • What you expected to have happen
    I have timeout 20 sec. this queries stale for this timeout and not try to recover according to [executionAttempts=3] setting

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions