diff --git a/src/main/java/com/alipay/oceanbase/hbase/OHTable.java b/src/main/java/com/alipay/oceanbase/hbase/OHTable.java index 8589f61f..3f827417 100644 --- a/src/main/java/com/alipay/oceanbase/hbase/OHTable.java +++ b/src/main/java/com/alipay/oceanbase/hbase/OHTable.java @@ -1118,6 +1118,9 @@ public ResultScanner getScanner(final Scan scan) throws IOException { return execute(new OperationExecuteCallback(OHOperationType.SCAN, 1 /* batchSize */) { @Override ResultScanner execute() throws IOException { + if (!scan.getCacheBlocks()) { + throw new FeatureNotSupportedException("scan setCacheBlocks interface not supported"); + } if (scan.getFamilyMap().keySet().isEmpty()) { if (!FeatureSupport.isEmptyFamilySupported()) { throw new FeatureNotSupportedException("empty family scan not supported yet within observer version: " + ObGlobal.obVsnString());