Hi all,

When scanning HBase using the AdvancedScanResultConsumer, what’s the most 
prompt way to cancel/close an active scan? I only see the possibility of 
calling ScanController#terminate in the onNext or onHeartbeat callbacks. 
However, if, because of an external signal like a timeout, this approach seems 
to unnecessarily delay the termination as it needs to await onNext or 
onHeartbeat.

The documentation is very clear on not storing references to ScanController. 
However, it would be nice if 
org.apache.hadoop.hbase.client.AsyncTable#scan(scan, consumer) would return 
some kind of handle that allows for immediate cancellation. Am I overlooking 
something? Is there a better approach to this?

I reckon that this would require some wiring in AsyncClientScanner#startScan to 
store the current scanner id and some coordination to handle various concurrent 
control (scan just being opened, etc.).

I would appreciate any feedback.

Best regards,
Frens Jan

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to