Closed bignacio closed 4 years ago
It's not returning a record, it's returning a Result
. It has a Record
and an Err
field. You are consuming the records without first checking for the Err
.
I'm going to go ahead a close this issue. Feel free to file new ones.
Hi all, I run into an issue where doing a
ScanAll
on an invalid namespace can return a record set that is not empty but it has nil dataWhile I understand that should not be a problem in normal circumstances, it could be an indication of an underlying concurrency problem.
here's a way to reproduce it Using aerospike client v2.9.0
note that the namespace given to
ScanAll
must not exist or have not been initialized (this problem is also seen when aerospike is initializing, just not very frequent.If there's time long enough between the call scan and iterating the recordset results, then the problem is not visible. Here I tried to simulate that with a long sleep.