aerospike-client-nodejs: Synchronous error callback in query command causes "unspecified" error in record stream
In our test code we are using AS.query
and on error it gives a complete halt of system.
events.js:146
throw err;
^
Error: Uncaught, unspecified "error" event. ([object Object])
at RecordStream.emit (events.js:144:17)
at /home/ec2-user/testcode/node_modules/aerospike/lib/query.js:315:14
at Query.foreach (/home/ec2-user/testcode/node_modules/aerospike/lib/query.js:313:11)
at async.parallel.datasearch (/home/ec2-user/testcode/webnew.js:2301:27)
at /home/ec2-user/testcode/node_modules/async/dist/async.js:3671:13
at replenish (/home/ec2-user/testcode/node_modules/async/dist/async.js:884:21)
at iterateeCallback (/home/ec2-user/testcode/node_modules/async/dist/async.js:869:21)
at /home/ec2-user/testcode/node_modules/async/dist/async.js:847:20
at /home/ec2-user/testcode/node_modules/async/dist/async.js:3676:17
at /home/ec2-user/testcode/node_modules/async/dist/async.js:339:31
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (10 by maintainers)
There are two main differences between batchRead and batchGet:
I would recommend that you upgrade to the v2 as it might address they issues that you are seeing.