Attempting to run UDF scan with node.js client, gets this error
{"code":1,"message":"AEROSPIKE_ERR_SERVER","func":"as_scan_parse_records","file":"src/main/aerospike/aerospike_scan.c","line":104}
The aerospike.log has the following:
Jul 15 2015 03:39:05 GMT: INFO (scan): (thr_tscan.c::871) scan job received
Jul 15 2015 03:39:05 GMT: INFO (scan): (thr_tscan.c::922) scan_option 0x0 0x64
Jul 15 2015 03:39:05 GMT: INFO (scan): (thr_tscan.c::979) NO bins specified select all
Jul 15 2015 03:39:05 GMT: INFO (scan): (thr_tscan.c::1013) scan option: Fail if cluster change False
Jul 15 2015 03:39:05 GMT: INFO (scan): (thr_tscan.c::1014) scan option: Background Job False
Jul 15 2015 03:39:05 GMT: INFO (scan): (thr_tscan.c::1015) scan option: priority is 0 n_threads 1 job_type 1
Jul 15 2015 03:39:05 GMT: INFO (scan): (thr_tscan.c::1016) scan option: scan_pct is 100
Jul 15 2015 03:39:05 GMT: WARNING (scan): (thr_tscan.c::1020) not starting scan 2054883107 because rchash_put() failed with error -4
Jul 15 2015 03:39:05 GMT: INFO (tsvc): (thr_tsvc.c::451) Scan failed with error -2
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::160) SIGSEGV received, aborting Aerospike Community Edition build 3.5.14
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: found 16 frames
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 0: /usr/bin/asd(as_sig_handle_segv+0x59) [0x46e768]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 1: /lib64/libc.so.6(+0x326a0) [0x7f7dbee706a0]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 2: /lib64/libpthread.so.0(pthread_mutex_lock+0) [0x7f7dbfc973a0]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 3: /usr/bin/asd(as_index_get_vlock+0x16) [0x45a40a]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 4: /usr/bin/asd(as_record_get+0xcd) [0x46b8dd]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 5: /usr/bin/asd(udf_record_open+0xd0) [0x4c3f06]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 6: /usr/bin/asd(as_aggr_istream_read+0x1c8) [0x44efab]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 7: /usr/bin/asd() [0x5219d8]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 8: /usr/bin/asd() [0x541da8]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 9: /usr/bin/asd(lua_pcall+0x30) [0x5301b0]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 10: /usr/bin/asd() [0x51b817]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 11: /usr/bin/asd() [0x51c047]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 12: /usr/bin/asd(as_aggr__process+0x271) [0x44f461]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 13: /usr/bin/asd(tscan_partition_thr+0x35e) [0x4bbc75]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 14: /lib64/libpthread.so.0(+0x79d1) [0x7f7dbfc959d1]
Jul 15 2015 03:39:05 GMT: WARNING (as): (signal.c::162) stacktrace: frame 15: /lib64/libc.so.6(clone+0x6d) [0x7f7dbef268fd]
As stated in my previous topic, there appears to be an issue with
asinfo -v "set-config:context=namespace;id=<name space>;set=<set name>;set-delete=true;"
As records get deleted, but a reboot brings them back. So I suspect that function somehow corrupted dataset?
Here's my LUA function
function updateUserId(rec,newUserId)
rec['userId'] = 'test'
aerospike:update(rec)
end
Nothing too crazy.