File tree Expand file tree Collapse file tree
hbase-server/src/main/java/org/apache/hadoop/hbase/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,8 +110,9 @@ private static String getTimeDiffInSec(long startTime) {
110110 * Tries to scan a row from passed region
111111 */
112112 private void isSuccessfulScan (RegionInfo region ) throws IOException {
113- Scan scan = new Scan ().withStartRow (region .getStartKey ()).setRaw (true ).setOneRowLimit ()
114- .setMaxResultSize (1L ).setCaching (1 ).setFilter (new FirstKeyOnlyFilter ()).setCacheBlocks (false );
113+ Scan scan = new Scan ().withStartRow (region .getStartKey ()).withStopRow (region .getEndKey (), false )
114+ .setRaw (true ).setOneRowLimit ().setMaxResultSize (1L ).setCaching (1 )
115+ .setFilter (new FirstKeyOnlyFilter ()).setCacheBlocks (false );
115116 try (Table table = conn .getTable (region .getTable ());
116117 ResultScanner scanner = table .getScanner (scan )) {
117118 scanner .next ();
You can’t perform that action at this time.
0 commit comments