File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/test/java/com/alipay/oceanbase/hbase Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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 ++) {
You can’t perform that action at this time.
0 commit comments