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

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.

1 Like

Killing a scan can also be done via aql. Please see:

and http://www.aerospike.com/docs/operations/manage/scans/

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