hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhangduo (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-12817) Data missing while scanning using PREFIX_TREE DATA-BLOCK-ENCODING
Date Wed, 07 Jan 2015 10:48:34 GMT
zhangduo created HBASE-12817:

             Summary: Data missing while scanning using PREFIX_TREE DATA-BLOCK-ENCODING
                 Key: HBASE-12817
                 URL: https://issues.apache.org/jira/browse/HBASE-12817
             Project: HBase
          Issue Type: Bug
          Components: Scanners
    Affects Versions: 0.98.9
            Reporter: zhangduo
            Assignee: zhangduo

write a testcase like this
  public void test() throws IOException {
    for (int i = 0; i < 100; i++) {
      region.put(new Put(Bytes.toBytes("obj" + (2900 + i))).add(fam, qual1, Bytes.toBytes(i)));
    region.put(new Put(Bytes.toBytes("obj299")).add(fam, qual1, Bytes.toBytes("whatever")));
    region.put(new Put(Bytes.toBytes("obj29")).add(fam, qual1, Bytes.toBytes("whatever")));
    region.put(new Put(Bytes.toBytes("obj2")).add(fam, qual1, Bytes.toBytes("whatever")));
    region.put(new Put(Bytes.toBytes("obj3")).add(fam, qual1, Bytes.toBytes("whatever")));
    Scan scan = new Scan(Bytes.toBytes("obj29995"));
    RegionScanner scanner = region.getScanner(scan);
    List<Cell> cells = new ArrayList<Cell>();
    assertArrayEquals(Bytes.toBytes("obj3"), Result.create(cells).getRow());

use obj29995 to scan should return obj3, but obj2990 is returned.

Seems a bug introduced by the fix of HBASE-11728.

This message was sent by Atlassian JIRA

View raw message