AggregationClient fails validation for open stoprow scan

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1306914 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-03-29 15:29:01 +00:00
parent ec4d59770a
commit 67ded34626
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ public class AggregationClient {
if (scan == null
|| (Bytes.equals(scan.getStartRow(), scan.getStopRow()) && !Bytes
.equals(scan.getStartRow(), HConstants.EMPTY_START_ROW))
|| Bytes.compareTo(scan.getStartRow(), scan.getStopRow()) > 0) {
|| ((Bytes.compareTo(scan.getStartRow(), scan.getStopRow()) > 0) &&
!Bytes.equals(scan.getStopRow(), HConstants.EMPTY_END_ROW))) {
throw new IOException(
"Agg client Exception: Startrow should be smaller than Stoprow");
} else if (scan.getFamilyMap().size() != 1) {