Zheng Wang created HBASE-22781:
----------------------------------
Summary: Not suitable params of StoreScanner in the test case
TestStoreScanner.testScanSameTimestamp
Key: HBASE-22781
URL: https://issues.apache.org/jira/browse/HBASE-22781
Project: HBase
Issue Type: Bug
Components: test
Affects Versions: 2.0.0
Reporter: Zheng Wang
{code:java}
Scan scanSpec = new Scan().withStartRow(Bytes.toBytes("R1"));
// this only uses maxVersions (default=1) and TimeRange (default=all)
try (StoreScanner scan = new StoreScanner(scanSpec, scanInfo, getCols("a"),
scanners)) {
List<Cell> results = new ArrayList<>();
assertEquals(true, scan.next(results));
assertEquals(1, results.size());
assertEquals(kvs[0], results.get(0));
}
{code}
It will not to compare the timestamp of the two cells,because of the
'getCols("a")' limit one column and one version(default).
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)