Is there a way to stop AsyncClient.scanAll once it’s started?
Throw an AerospikeException.ScanTerminated exception in your scan callback (onRecord()). When each node’s scan thread calls onRecord() the exception should be thrown. When this happens, that scan thread will be terminated.
Killing a scan can also be done via aql. Please see: http://www.aerospike.com/docs/tools/aql/query_scan_management.html and http://www.aerospike.com/docs/operations/manage/scans/
Thanks, Brian. Post must be at least 20 characters long.