hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-12817) Data missing while scanning using PREFIX_TREE data block encoding
Date Thu, 08 Jan 2015 05:50:35 GMT

    [ https://issues.apache.org/jira/browse/HBASE-12817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14268860#comment-14268860
] 

Hudson commented on HBASE-12817:
--------------------------------

SUCCESS: Integrated in HBase-1.1 #66 (See [https://builds.apache.org/job/HBase-1.1/66/])
HBASE-12817 Data missing while scanning using PREFIX_TREE data block encoding (Duo Zhang)
(tedyu: rev 29ec882a5e0269ce453cf806727551a4f28020a5)
* hbase-prefix-tree/src/main/java/org/apache/hadoop/hbase/codec/prefixtree/decode/PrefixTreeArrayScanner.java
* hbase-prefix-tree/src/main/java/org/apache/hadoop/hbase/codec/prefixtree/PrefixTreeSeeker.java
* hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestPrefixTree.java
* hbase-prefix-tree/src/main/java/org/apache/hadoop/hbase/codec/prefixtree/decode/PrefixTreeArrayReversibleScanner.java


> 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
>             Fix For: 1.0.0, 2.0.0, 0.98.10, 1.1.0
>
>         Attachments: HBASE-12817-0.98.patch, HBASE-12817-branch-1.patch, HBASE-12817.patch,
HBASE-12817_1.patch
>
>
> write a testcase like this
> {code}
>   @Test
>   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")));
>     region.flushcache(true);
>     Scan scan = new Scan(Bytes.toBytes("obj29995"));
>     RegionScanner scanner = region.getScanner(scan);
>     List<Cell> cells = new ArrayList<Cell>();
>     assertFalse(scanner.next(cells));
>     assertArrayEquals(Bytes.toBytes("obj3"), Result.create(cells).getRow());
>   }
> {code}
> 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
(v6.3.4#6332)

Mime
View raw message