I’m looking for ideas how to debug a UDF Execution Error. The UDF works fine in our local dev environments, but fails when run in our build environment. The only error indication is the message from a AerospikeClient exception: Error Code 100: UDF: Execution Error 1. There are no errors in aerospike.log, and asinfo indicates everything is happy. I have a simple tool to test registration of the UDF, and it indicates that registration works just fine, too. How can I debug this?
Aerospike 3.4.1, CentOS 6.
For what it’s worth, here’s the UDF:
– Set a particular bin only if record does not already exist. – Returns 1 if bin is written, 0 if not. function writeUnique(r,name,value) if not aerospike:exists® then aerospike:create® r[name] = value aerospike:update® return 1 else return 0 end end