hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Useless Coprocessors in Split transaction?
Date Fri, 07 Oct 2016 19:14:26 GMT
Please take a look
at phoenix-core/src/main/java/org/apache/phoenix/coprocessor/DelegateRegionObserver.java
where you can see usage of preSplitBeforePONR and preSplitAfterPONR .

In general, we can remove deprecated methods in the next major release.

FYI

On Fri, Oct 7, 2016 at 12:11 PM, Stephen Jiang <syuanjiangdev@gmail.com>
wrote:

> We have a lot of CPs in Split:
>
> I know Phoenix relies on preSplit; and I think someone is using
> postCompleteSplit.
>
> I just wonder whether "*preSplitBeforePONR*" and "*preSplitAfterPONR*" are
> useful - anyone is using it other than our testing? Can I safely remove
> them without breaking applications.
>
>   *@Deprecated*
> *  public void preSplit(final User user) *
>
> *  public void preSplit(final byte[] splitRow, final User user) *
>
> *  @Deprecated ??? - seems can be replaced by postCompleteSplit from
> comments*
> *  public void postSplit(final Region l, final Region r, final User user) *
>
> *  public boolean preSplitBeforePONR(final byte[] splitKey,*
> *      final List<Mutation> metaEntries, final User user) *
>
> *  public void preSplitAfterPONR(final User user) *
>
> *  public void preRollBackSplit(final User user) *
>
> *  public void postRollBackSplit(final User user) *
>
> *  public void postCompleteSplit()*
>

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