Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
e.g.
startRow : "112"
rowPrefixFilter : "11"
The Result of this scan might contains : "111", which unexpected.
public Scan setRowPrefixFilter(byte[] rowPrefix) { if (rowPrefix == null) { setStartRow(HConstants.EMPTY_START_ROW); setStopRow(HConstants.EMPTY_END_ROW); } else { this.setStartRow(rowPrefix); this.setStopRow(calculateTheClosestNextRowKeyForPrefix(rowPrefix)); } return this; }
 Scan#setRowPrefixFilter achieves this function by setting startRow and stopRow, ignoring the situation that startRow may have been set.
Attachments
Issue Links
- links to