Is there a way to stop AsyncClient.scanAll once it's started?


#1

Is there a way to stop AsyncClient.scanAll once it’s started?


#2

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.


#3

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/


#4

Thanks, Brian. Post must be at least 20 characters long.