anoopsjohn commented on a change in pull request #4215:
URL: https://github.com/apache/hbase/pull/4215#discussion_r825567601
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/client/ClientSideRegionScanner.java
##########
@@ -93,9 +93,12 @@ public ClientSideRegionScanner(Configuration conf,
FileSystem fs,
@Override
public Result next() throws IOException {
values.clear();
- scanner.nextRaw(values);
- if (values.isEmpty()) {
- //we are done
+ boolean moreValues;
+ do {
+ moreValues = scanner.nextRaw(values);
+ } while (values.isEmpty() && moreValues);
+
+ if (!moreValues) {
Review comment:
We will see empty result (values) but still more rows when the scan met
RPC timeout value? Will it be possible to have UT here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]