hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Question About preSplit() hook
Date Tue, 19 Dec 2017 15:48:14 GMT
If you look at hbase-server/src/main/java/org/apache/hadoop/hbase/
regionserver/SplitTransactionImpl.java where the hook is called, you would
see that splitRow is passed to SplitTransactionImpl ctor.

In SplitRequest, which creates SplitTransactionImpl, calls the row midKey.

Please read HBASE-19331 which gives the background on how the midKey is

On Tue, Dec 19, 2017 at 12:40 AM, Yang Zhang <zhang.yang.dm@gmail.com>

> Hello everyone
>           I am using coprocessor of HBase, My work is to split my own index
> when RegionSplit.
> When I use the preSplit(ObserverContext<RegionCoprocessorEnvironment> c,
> byte[] splitRow) , I thought The param splitRow must be some row taht I
> puted in my Table, But this time I get  one row That can't be mine(my
> rowkey is constructed with long+int but the splitRow is only 3bytes)
>         So I want to know how HBase determine the splitRow? Is the splitRow
> must be exist in my table? If anybody can help?
> Thanks very much!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message