Skip to content

Commit bb306d7

Browse files
committed
refine
1 parent d328476 commit bb306d7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/test/java/com/alipay/oceanbase/hbase/HTableTestBase.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5632,23 +5632,24 @@ public void testScannerMultiVersion() throws Exception {
56325632

56335633
@Test
56345634
public void testAsyncPrefetchScanner() throws IOException {
5635-
testAsyncPrefetchScannerInner(null);
5636-
testAsyncPrefetchScannerInner((b) -> {
5635+
testAsyncPrefetchScannerInner(40, 40, null);
5636+
testAsyncPrefetchScannerInner(40, 40, (b) -> {
56375637
try {
56385638
TimeUnit.MILLISECONDS.sleep(500);
56395639
} catch (InterruptedException ignored) {
56405640
}
56415641
});
5642+
testAsyncPrefetchScannerInner(40, 40, (b) -> {
5643+
System.out.println("prefetch status: " + b);
5644+
});
56425645
}
56435646

5644-
public void testAsyncPrefetchScannerInner(Consumer<Boolean> listener) throws IOException {
5647+
public void testAsyncPrefetchScannerInner(int row_count, int column_count, Consumer<Boolean> listener) throws IOException {
56455648
String key = "async_scanner";
56465649
String column = "column";
56475650
String value = "value";
56485651
String family = "family1";
56495652
Put put;
5650-
int row_count = 40;
5651-
int column_count = 40;
56525653
for (int i = 0; i < row_count; i++) {
56535654
String k = key + i;
56545655
for (int j = 0; j < column_count; j++) {

0 commit comments

Comments
 (0)