hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [21/51] [partial] hbase-site git commit: Published site at 82d554e3783372cc6b05489452c815b57c06f6cd.
Date Sun, 23 Jul 2017 15:08:56 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/0383a9c2/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterEnvironment.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterEnvironment.html b/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterEnvironment.html
index e690c2d..ec75aa9 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterEnvironment.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/master/MasterCoprocessorHost.MasterEnvironment.html
@@ -818,1092 +818,1070 @@
 <span class="sourceLineNo">810</span>    });<a name="line.810"></a>
 <span class="sourceLineNo">811</span>  }<a name="line.811"></a>
 <span class="sourceLineNo">812</span><a name="line.812"></a>
-<span class="sourceLineNo">813</span>  public void preDispatchMerge(final HRegionInfo regionInfoA, final HRegionInfo regionInfoB)<a name="line.813"></a>
-<span class="sourceLineNo">814</span>  throws IOException {<a name="line.814"></a>
+<span class="sourceLineNo">813</span>  public void preMergeRegions(final HRegionInfo[] regionsToMerge)<a name="line.813"></a>
+<span class="sourceLineNo">814</span>      throws IOException {<a name="line.814"></a>
 <span class="sourceLineNo">815</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.815"></a>
 <span class="sourceLineNo">816</span>      @Override<a name="line.816"></a>
 <span class="sourceLineNo">817</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.817"></a>
 <span class="sourceLineNo">818</span>          throws IOException {<a name="line.818"></a>
-<span class="sourceLineNo">819</span>        oserver.preDispatchMerge(ctx, regionInfoA, regionInfoB);<a name="line.819"></a>
+<span class="sourceLineNo">819</span>        oserver.preMergeRegions(ctx, regionsToMerge);<a name="line.819"></a>
 <span class="sourceLineNo">820</span>      }<a name="line.820"></a>
 <span class="sourceLineNo">821</span>    });<a name="line.821"></a>
 <span class="sourceLineNo">822</span>  }<a name="line.822"></a>
 <span class="sourceLineNo">823</span><a name="line.823"></a>
-<span class="sourceLineNo">824</span>  public void postDispatchMerge(final HRegionInfo regionInfoA, final HRegionInfo regionInfoB)<a name="line.824"></a>
-<span class="sourceLineNo">825</span>  throws IOException {<a name="line.825"></a>
+<span class="sourceLineNo">824</span>  public void postMergeRegions(final HRegionInfo[] regionsToMerge)<a name="line.824"></a>
+<span class="sourceLineNo">825</span>      throws IOException {<a name="line.825"></a>
 <span class="sourceLineNo">826</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.826"></a>
 <span class="sourceLineNo">827</span>      @Override<a name="line.827"></a>
 <span class="sourceLineNo">828</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.828"></a>
 <span class="sourceLineNo">829</span>          throws IOException {<a name="line.829"></a>
-<span class="sourceLineNo">830</span>        oserver.postDispatchMerge(ctx, regionInfoA, regionInfoB);<a name="line.830"></a>
+<span class="sourceLineNo">830</span>        oserver.postMergeRegions(ctx, regionsToMerge);<a name="line.830"></a>
 <span class="sourceLineNo">831</span>      }<a name="line.831"></a>
 <span class="sourceLineNo">832</span>    });<a name="line.832"></a>
 <span class="sourceLineNo">833</span>  }<a name="line.833"></a>
 <span class="sourceLineNo">834</span><a name="line.834"></a>
-<span class="sourceLineNo">835</span>  public void preMergeRegions(final HRegionInfo[] regionsToMerge)<a name="line.835"></a>
-<span class="sourceLineNo">836</span>      throws IOException {<a name="line.836"></a>
-<span class="sourceLineNo">837</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.837"></a>
-<span class="sourceLineNo">838</span>      @Override<a name="line.838"></a>
-<span class="sourceLineNo">839</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.839"></a>
-<span class="sourceLineNo">840</span>          throws IOException {<a name="line.840"></a>
-<span class="sourceLineNo">841</span>        oserver.preMergeRegions(ctx, regionsToMerge);<a name="line.841"></a>
-<span class="sourceLineNo">842</span>      }<a name="line.842"></a>
-<span class="sourceLineNo">843</span>    });<a name="line.843"></a>
-<span class="sourceLineNo">844</span>  }<a name="line.844"></a>
-<span class="sourceLineNo">845</span><a name="line.845"></a>
-<span class="sourceLineNo">846</span>  public void postMergeRegions(final HRegionInfo[] regionsToMerge)<a name="line.846"></a>
-<span class="sourceLineNo">847</span>      throws IOException {<a name="line.847"></a>
-<span class="sourceLineNo">848</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.848"></a>
-<span class="sourceLineNo">849</span>      @Override<a name="line.849"></a>
-<span class="sourceLineNo">850</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.850"></a>
-<span class="sourceLineNo">851</span>          throws IOException {<a name="line.851"></a>
-<span class="sourceLineNo">852</span>        oserver.postMergeRegions(ctx, regionsToMerge);<a name="line.852"></a>
-<span class="sourceLineNo">853</span>      }<a name="line.853"></a>
-<span class="sourceLineNo">854</span>    });<a name="line.854"></a>
-<span class="sourceLineNo">855</span>  }<a name="line.855"></a>
-<span class="sourceLineNo">856</span><a name="line.856"></a>
-<span class="sourceLineNo">857</span>  public boolean preBalance() throws IOException {<a name="line.857"></a>
-<span class="sourceLineNo">858</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.858"></a>
-<span class="sourceLineNo">859</span>      @Override<a name="line.859"></a>
-<span class="sourceLineNo">860</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.860"></a>
-<span class="sourceLineNo">861</span>          throws IOException {<a name="line.861"></a>
-<span class="sourceLineNo">862</span>        oserver.preBalance(ctx);<a name="line.862"></a>
-<span class="sourceLineNo">863</span>      }<a name="line.863"></a>
-<span class="sourceLineNo">864</span>    });<a name="line.864"></a>
-<span class="sourceLineNo">865</span>  }<a name="line.865"></a>
-<span class="sourceLineNo">866</span><a name="line.866"></a>
-<span class="sourceLineNo">867</span>  public void postBalance(final List&lt;RegionPlan&gt; plans) throws IOException {<a name="line.867"></a>
+<span class="sourceLineNo">835</span>  public boolean preBalance() throws IOException {<a name="line.835"></a>
+<span class="sourceLineNo">836</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.836"></a>
+<span class="sourceLineNo">837</span>      @Override<a name="line.837"></a>
+<span class="sourceLineNo">838</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.838"></a>
+<span class="sourceLineNo">839</span>          throws IOException {<a name="line.839"></a>
+<span class="sourceLineNo">840</span>        oserver.preBalance(ctx);<a name="line.840"></a>
+<span class="sourceLineNo">841</span>      }<a name="line.841"></a>
+<span class="sourceLineNo">842</span>    });<a name="line.842"></a>
+<span class="sourceLineNo">843</span>  }<a name="line.843"></a>
+<span class="sourceLineNo">844</span><a name="line.844"></a>
+<span class="sourceLineNo">845</span>  public void postBalance(final List&lt;RegionPlan&gt; plans) throws IOException {<a name="line.845"></a>
+<span class="sourceLineNo">846</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.846"></a>
+<span class="sourceLineNo">847</span>      @Override<a name="line.847"></a>
+<span class="sourceLineNo">848</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.848"></a>
+<span class="sourceLineNo">849</span>          throws IOException {<a name="line.849"></a>
+<span class="sourceLineNo">850</span>        oserver.postBalance(ctx, plans);<a name="line.850"></a>
+<span class="sourceLineNo">851</span>      }<a name="line.851"></a>
+<span class="sourceLineNo">852</span>    });<a name="line.852"></a>
+<span class="sourceLineNo">853</span>  }<a name="line.853"></a>
+<span class="sourceLineNo">854</span><a name="line.854"></a>
+<span class="sourceLineNo">855</span>  public boolean preSetSplitOrMergeEnabled(final boolean newValue,<a name="line.855"></a>
+<span class="sourceLineNo">856</span>      final MasterSwitchType switchType) throws IOException {<a name="line.856"></a>
+<span class="sourceLineNo">857</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.857"></a>
+<span class="sourceLineNo">858</span>      @Override<a name="line.858"></a>
+<span class="sourceLineNo">859</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.859"></a>
+<span class="sourceLineNo">860</span>          throws IOException {<a name="line.860"></a>
+<span class="sourceLineNo">861</span>        oserver.preSetSplitOrMergeEnabled(ctx, newValue, switchType);<a name="line.861"></a>
+<span class="sourceLineNo">862</span>      }<a name="line.862"></a>
+<span class="sourceLineNo">863</span>    });<a name="line.863"></a>
+<span class="sourceLineNo">864</span>  }<a name="line.864"></a>
+<span class="sourceLineNo">865</span><a name="line.865"></a>
+<span class="sourceLineNo">866</span>  public void postSetSplitOrMergeEnabled(final boolean newValue,<a name="line.866"></a>
+<span class="sourceLineNo">867</span>      final MasterSwitchType switchType) throws IOException {<a name="line.867"></a>
 <span class="sourceLineNo">868</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.868"></a>
 <span class="sourceLineNo">869</span>      @Override<a name="line.869"></a>
 <span class="sourceLineNo">870</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.870"></a>
 <span class="sourceLineNo">871</span>          throws IOException {<a name="line.871"></a>
-<span class="sourceLineNo">872</span>        oserver.postBalance(ctx, plans);<a name="line.872"></a>
+<span class="sourceLineNo">872</span>        oserver.postSetSplitOrMergeEnabled(ctx, newValue, switchType);<a name="line.872"></a>
 <span class="sourceLineNo">873</span>      }<a name="line.873"></a>
 <span class="sourceLineNo">874</span>    });<a name="line.874"></a>
 <span class="sourceLineNo">875</span>  }<a name="line.875"></a>
 <span class="sourceLineNo">876</span><a name="line.876"></a>
-<span class="sourceLineNo">877</span>  public boolean preSetSplitOrMergeEnabled(final boolean newValue,<a name="line.877"></a>
-<span class="sourceLineNo">878</span>      final MasterSwitchType switchType) throws IOException {<a name="line.878"></a>
-<span class="sourceLineNo">879</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.879"></a>
-<span class="sourceLineNo">880</span>      @Override<a name="line.880"></a>
-<span class="sourceLineNo">881</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.881"></a>
-<span class="sourceLineNo">882</span>          throws IOException {<a name="line.882"></a>
-<span class="sourceLineNo">883</span>        oserver.preSetSplitOrMergeEnabled(ctx, newValue, switchType);<a name="line.883"></a>
-<span class="sourceLineNo">884</span>      }<a name="line.884"></a>
-<span class="sourceLineNo">885</span>    });<a name="line.885"></a>
-<span class="sourceLineNo">886</span>  }<a name="line.886"></a>
-<span class="sourceLineNo">887</span><a name="line.887"></a>
-<span class="sourceLineNo">888</span>  public void postSetSplitOrMergeEnabled(final boolean newValue,<a name="line.888"></a>
-<span class="sourceLineNo">889</span>      final MasterSwitchType switchType) throws IOException {<a name="line.889"></a>
-<span class="sourceLineNo">890</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.890"></a>
-<span class="sourceLineNo">891</span>      @Override<a name="line.891"></a>
-<span class="sourceLineNo">892</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.892"></a>
-<span class="sourceLineNo">893</span>          throws IOException {<a name="line.893"></a>
-<span class="sourceLineNo">894</span>        oserver.postSetSplitOrMergeEnabled(ctx, newValue, switchType);<a name="line.894"></a>
-<span class="sourceLineNo">895</span>      }<a name="line.895"></a>
-<span class="sourceLineNo">896</span>    });<a name="line.896"></a>
-<span class="sourceLineNo">897</span>  }<a name="line.897"></a>
-<span class="sourceLineNo">898</span><a name="line.898"></a>
-<span class="sourceLineNo">899</span>  /**<a name="line.899"></a>
-<span class="sourceLineNo">900</span>   * Invoked just before calling the split region procedure<a name="line.900"></a>
-<span class="sourceLineNo">901</span>   * @param tableName the table where the region belongs to<a name="line.901"></a>
-<span class="sourceLineNo">902</span>   * @param splitRow the split point<a name="line.902"></a>
-<span class="sourceLineNo">903</span>   * @throws IOException<a name="line.903"></a>
-<span class="sourceLineNo">904</span>   */<a name="line.904"></a>
-<span class="sourceLineNo">905</span>  public void preSplitRegion(<a name="line.905"></a>
-<span class="sourceLineNo">906</span>      final TableName tableName,<a name="line.906"></a>
-<span class="sourceLineNo">907</span>      final byte[] splitRow) throws IOException {<a name="line.907"></a>
-<span class="sourceLineNo">908</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.908"></a>
-<span class="sourceLineNo">909</span>      @Override<a name="line.909"></a>
-<span class="sourceLineNo">910</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.910"></a>
-<span class="sourceLineNo">911</span>          throws IOException {<a name="line.911"></a>
-<span class="sourceLineNo">912</span>        oserver.preSplitRegion(ctx, tableName, splitRow);<a name="line.912"></a>
-<span class="sourceLineNo">913</span>      }<a name="line.913"></a>
-<span class="sourceLineNo">914</span>    });<a name="line.914"></a>
-<span class="sourceLineNo">915</span>  }<a name="line.915"></a>
-<span class="sourceLineNo">916</span><a name="line.916"></a>
-<span class="sourceLineNo">917</span>  /**<a name="line.917"></a>
-<span class="sourceLineNo">918</span>   * Invoked just before a split<a name="line.918"></a>
-<span class="sourceLineNo">919</span>   * @param tableName the table where the region belongs to<a name="line.919"></a>
-<span class="sourceLineNo">920</span>   * @param splitRow the split point<a name="line.920"></a>
-<span class="sourceLineNo">921</span>   * @param user the user<a name="line.921"></a>
-<span class="sourceLineNo">922</span>   * @throws IOException<a name="line.922"></a>
-<span class="sourceLineNo">923</span>   */<a name="line.923"></a>
-<span class="sourceLineNo">924</span>  public void preSplitRegionAction(<a name="line.924"></a>
-<span class="sourceLineNo">925</span>      final TableName tableName,<a name="line.925"></a>
-<span class="sourceLineNo">926</span>      final byte[] splitRow,<a name="line.926"></a>
-<span class="sourceLineNo">927</span>      final User user) throws IOException {<a name="line.927"></a>
-<span class="sourceLineNo">928</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.928"></a>
-<span class="sourceLineNo">929</span>      @Override<a name="line.929"></a>
-<span class="sourceLineNo">930</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.930"></a>
-<span class="sourceLineNo">931</span>          throws IOException {<a name="line.931"></a>
-<span class="sourceLineNo">932</span>        oserver.preSplitRegionAction(ctx, tableName, splitRow);<a name="line.932"></a>
-<span class="sourceLineNo">933</span>      }<a name="line.933"></a>
-<span class="sourceLineNo">934</span>    });<a name="line.934"></a>
-<span class="sourceLineNo">935</span>  }<a name="line.935"></a>
-<span class="sourceLineNo">936</span><a name="line.936"></a>
-<span class="sourceLineNo">937</span>  /**<a name="line.937"></a>
-<span class="sourceLineNo">938</span>   * Invoked just after a split<a name="line.938"></a>
-<span class="sourceLineNo">939</span>   * @param regionInfoA the new left-hand daughter region<a name="line.939"></a>
-<span class="sourceLineNo">940</span>   * @param regionInfoB the new right-hand daughter region<a name="line.940"></a>
-<span class="sourceLineNo">941</span>   * @param user the user<a name="line.941"></a>
-<span class="sourceLineNo">942</span>   * @throws IOException<a name="line.942"></a>
-<span class="sourceLineNo">943</span>   */<a name="line.943"></a>
-<span class="sourceLineNo">944</span>  public void postCompletedSplitRegionAction(<a name="line.944"></a>
-<span class="sourceLineNo">945</span>      final HRegionInfo regionInfoA,<a name="line.945"></a>
-<span class="sourceLineNo">946</span>      final HRegionInfo regionInfoB,<a name="line.946"></a>
-<span class="sourceLineNo">947</span>      final User user) throws IOException {<a name="line.947"></a>
-<span class="sourceLineNo">948</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.948"></a>
-<span class="sourceLineNo">949</span>      @Override<a name="line.949"></a>
-<span class="sourceLineNo">950</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.950"></a>
-<span class="sourceLineNo">951</span>          throws IOException {<a name="line.951"></a>
-<span class="sourceLineNo">952</span>        oserver.postCompletedSplitRegionAction(ctx, regionInfoA, regionInfoB);<a name="line.952"></a>
-<span class="sourceLineNo">953</span>      }<a name="line.953"></a>
-<span class="sourceLineNo">954</span>    });<a name="line.954"></a>
-<span class="sourceLineNo">955</span>  }<a name="line.955"></a>
-<span class="sourceLineNo">956</span><a name="line.956"></a>
-<span class="sourceLineNo">957</span>  /**<a name="line.957"></a>
-<span class="sourceLineNo">958</span>   * This will be called before PONR step as part of split table region procedure.<a name="line.958"></a>
-<span class="sourceLineNo">959</span>   * @param splitKey<a name="line.959"></a>
-<span class="sourceLineNo">960</span>   * @param metaEntries<a name="line.960"></a>
-<span class="sourceLineNo">961</span>   * @param user the user<a name="line.961"></a>
-<span class="sourceLineNo">962</span>   * @throws IOException<a name="line.962"></a>
-<span class="sourceLineNo">963</span>   */<a name="line.963"></a>
-<span class="sourceLineNo">964</span>  public boolean preSplitBeforePONRAction(<a name="line.964"></a>
-<span class="sourceLineNo">965</span>      final byte[] splitKey,<a name="line.965"></a>
-<span class="sourceLineNo">966</span>      final List&lt;Mutation&gt; metaEntries,<a name="line.966"></a>
-<span class="sourceLineNo">967</span>      final User user) throws IOException {<a name="line.967"></a>
-<span class="sourceLineNo">968</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.968"></a>
-<span class="sourceLineNo">969</span>      @Override<a name="line.969"></a>
-<span class="sourceLineNo">970</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.970"></a>
-<span class="sourceLineNo">971</span>          throws IOException {<a name="line.971"></a>
-<span class="sourceLineNo">972</span>        oserver.preSplitRegionBeforePONRAction(ctx, splitKey, metaEntries);<a name="line.972"></a>
-<span class="sourceLineNo">973</span>      }<a name="line.973"></a>
-<span class="sourceLineNo">974</span>    });<a name="line.974"></a>
-<span class="sourceLineNo">975</span>  }<a name="line.975"></a>
-<span class="sourceLineNo">976</span><a name="line.976"></a>
-<span class="sourceLineNo">977</span>  /**<a name="line.977"></a>
-<span class="sourceLineNo">978</span>   * This will be called after PONR step as part of split table region procedure.<a name="line.978"></a>
-<span class="sourceLineNo">979</span>   * @param user the user<a name="line.979"></a>
-<span class="sourceLineNo">980</span>   * @throws IOException<a name="line.980"></a>
-<span class="sourceLineNo">981</span>   */<a name="line.981"></a>
-<span class="sourceLineNo">982</span>  public void preSplitAfterPONRAction(final User user) throws IOException {<a name="line.982"></a>
-<span class="sourceLineNo">983</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.983"></a>
-<span class="sourceLineNo">984</span>      @Override<a name="line.984"></a>
-<span class="sourceLineNo">985</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.985"></a>
-<span class="sourceLineNo">986</span>          throws IOException {<a name="line.986"></a>
-<span class="sourceLineNo">987</span>        oserver.preSplitRegionAfterPONRAction(ctx);<a name="line.987"></a>
-<span class="sourceLineNo">988</span>      }<a name="line.988"></a>
-<span class="sourceLineNo">989</span>    });<a name="line.989"></a>
-<span class="sourceLineNo">990</span>  }<a name="line.990"></a>
-<span class="sourceLineNo">991</span><a name="line.991"></a>
-<span class="sourceLineNo">992</span>  /**<a name="line.992"></a>
-<span class="sourceLineNo">993</span>   * Invoked just after the rollback of a failed split<a name="line.993"></a>
-<span class="sourceLineNo">994</span>   * @param user the user<a name="line.994"></a>
-<span class="sourceLineNo">995</span>   * @throws IOException<a name="line.995"></a>
-<span class="sourceLineNo">996</span>   */<a name="line.996"></a>
-<span class="sourceLineNo">997</span>  public void postRollBackSplitRegionAction(final User user) throws IOException {<a name="line.997"></a>
-<span class="sourceLineNo">998</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.998"></a>
-<span class="sourceLineNo">999</span>      @Override<a name="line.999"></a>
-<span class="sourceLineNo">1000</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1000"></a>
-<span class="sourceLineNo">1001</span>          throws IOException {<a name="line.1001"></a>
-<span class="sourceLineNo">1002</span>        oserver.postRollBackSplitRegionAction(ctx);<a name="line.1002"></a>
-<span class="sourceLineNo">1003</span>      }<a name="line.1003"></a>
-<span class="sourceLineNo">1004</span>    });<a name="line.1004"></a>
-<span class="sourceLineNo">1005</span>  }<a name="line.1005"></a>
-<span class="sourceLineNo">1006</span><a name="line.1006"></a>
-<span class="sourceLineNo">1007</span>  /**<a name="line.1007"></a>
-<span class="sourceLineNo">1008</span>   * Invoked just before a merge<a name="line.1008"></a>
-<span class="sourceLineNo">1009</span>   * @param regionsToMerge the regions to merge<a name="line.1009"></a>
-<span class="sourceLineNo">1010</span>   * @param user the user<a name="line.1010"></a>
-<span class="sourceLineNo">1011</span>   * @throws IOException<a name="line.1011"></a>
-<span class="sourceLineNo">1012</span>   */<a name="line.1012"></a>
-<span class="sourceLineNo">1013</span>  public boolean preMergeRegionsAction(<a name="line.1013"></a>
-<span class="sourceLineNo">1014</span>      final HRegionInfo[] regionsToMerge, final User user) throws IOException {<a name="line.1014"></a>
-<span class="sourceLineNo">1015</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.1015"></a>
-<span class="sourceLineNo">1016</span>      @Override<a name="line.1016"></a>
-<span class="sourceLineNo">1017</span>      public void call(MasterObserver oserver,<a name="line.1017"></a>
-<span class="sourceLineNo">1018</span>          ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx) throws IOException {<a name="line.1018"></a>
-<span class="sourceLineNo">1019</span>        oserver.preMergeRegionsAction(ctx, regionsToMerge);<a name="line.1019"></a>
-<span class="sourceLineNo">1020</span>      }<a name="line.1020"></a>
-<span class="sourceLineNo">1021</span>    });<a name="line.1021"></a>
-<span class="sourceLineNo">1022</span>  }<a name="line.1022"></a>
-<span class="sourceLineNo">1023</span><a name="line.1023"></a>
-<span class="sourceLineNo">1024</span>  /**<a name="line.1024"></a>
-<span class="sourceLineNo">1025</span>   * Invoked after completing merge regions operation<a name="line.1025"></a>
-<span class="sourceLineNo">1026</span>   * @param regionsToMerge the regions to merge<a name="line.1026"></a>
-<span class="sourceLineNo">1027</span>   * @param mergedRegion the new merged region<a name="line.1027"></a>
-<span class="sourceLineNo">1028</span>   * @param user the user<a name="line.1028"></a>
-<span class="sourceLineNo">1029</span>   * @throws IOException<a name="line.1029"></a>
-<span class="sourceLineNo">1030</span>   */<a name="line.1030"></a>
-<span class="sourceLineNo">1031</span>  public void postCompletedMergeRegionsAction(<a name="line.1031"></a>
-<span class="sourceLineNo">1032</span>      final HRegionInfo[] regionsToMerge,<a name="line.1032"></a>
-<span class="sourceLineNo">1033</span>      final HRegionInfo mergedRegion,<a name="line.1033"></a>
-<span class="sourceLineNo">1034</span>      final User user) throws IOException {<a name="line.1034"></a>
-<span class="sourceLineNo">1035</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.1035"></a>
-<span class="sourceLineNo">1036</span>      @Override<a name="line.1036"></a>
-<span class="sourceLineNo">1037</span>      public void call(MasterObserver oserver,<a name="line.1037"></a>
-<span class="sourceLineNo">1038</span>          ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx) throws IOException {<a name="line.1038"></a>
-<span class="sourceLineNo">1039</span>        oserver.postCompletedMergeRegionsAction(ctx, regionsToMerge, mergedRegion);<a name="line.1039"></a>
-<span class="sourceLineNo">1040</span>      }<a name="line.1040"></a>
-<span class="sourceLineNo">1041</span>    });<a name="line.1041"></a>
-<span class="sourceLineNo">1042</span>  }<a name="line.1042"></a>
-<span class="sourceLineNo">1043</span><a name="line.1043"></a>
-<span class="sourceLineNo">1044</span>  /**<a name="line.1044"></a>
-<span class="sourceLineNo">1045</span>   * Invoked before merge regions operation writes the new region to hbase:meta<a name="line.1045"></a>
-<span class="sourceLineNo">1046</span>   * @param regionsToMerge the regions to merge<a name="line.1046"></a>
-<span class="sourceLineNo">1047</span>   * @param metaEntries the meta entry<a name="line.1047"></a>
-<span class="sourceLineNo">1048</span>   * @param user the user<a name="line.1048"></a>
-<span class="sourceLineNo">1049</span>   * @throws IOException<a name="line.1049"></a>
-<span class="sourceLineNo">1050</span>   */<a name="line.1050"></a>
-<span class="sourceLineNo">1051</span>  public boolean preMergeRegionsCommit(<a name="line.1051"></a>
-<span class="sourceLineNo">1052</span>      final HRegionInfo[] regionsToMerge,<a name="line.1052"></a>
-<span class="sourceLineNo">1053</span>      final @MetaMutationAnnotation List&lt;Mutation&gt; metaEntries,<a name="line.1053"></a>
-<span class="sourceLineNo">1054</span>      final User user) throws IOException {<a name="line.1054"></a>
-<span class="sourceLineNo">1055</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.1055"></a>
-<span class="sourceLineNo">1056</span>      @Override<a name="line.1056"></a>
-<span class="sourceLineNo">1057</span>      public void call(MasterObserver oserver,<a name="line.1057"></a>
-<span class="sourceLineNo">1058</span>          ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx) throws IOException {<a name="line.1058"></a>
-<span class="sourceLineNo">1059</span>        oserver.preMergeRegionsCommitAction(ctx, regionsToMerge, metaEntries);<a name="line.1059"></a>
-<span class="sourceLineNo">1060</span>      }<a name="line.1060"></a>
-<span class="sourceLineNo">1061</span>    });<a name="line.1061"></a>
-<span class="sourceLineNo">1062</span>  }<a name="line.1062"></a>
-<span class="sourceLineNo">1063</span><a name="line.1063"></a>
-<span class="sourceLineNo">1064</span>  /**<a name="line.1064"></a>
-<span class="sourceLineNo">1065</span>   * Invoked after merge regions operation writes the new region to hbase:meta<a name="line.1065"></a>
-<span class="sourceLineNo">1066</span>   * @param regionsToMerge the regions to merge<a name="line.1066"></a>
-<span class="sourceLineNo">1067</span>   * @param mergedRegion the new merged region<a name="line.1067"></a>
-<span class="sourceLineNo">1068</span>   * @param user the user<a name="line.1068"></a>
-<span class="sourceLineNo">1069</span>   * @throws IOException<a name="line.1069"></a>
-<span class="sourceLineNo">1070</span>   */<a name="line.1070"></a>
-<span class="sourceLineNo">1071</span>  public void postMergeRegionsCommit(<a name="line.1071"></a>
-<span class="sourceLineNo">1072</span>      final HRegionInfo[] regionsToMerge,<a name="line.1072"></a>
-<span class="sourceLineNo">1073</span>      final HRegionInfo mergedRegion,<a name="line.1073"></a>
-<span class="sourceLineNo">1074</span>      final User user) throws IOException {<a name="line.1074"></a>
-<span class="sourceLineNo">1075</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.1075"></a>
-<span class="sourceLineNo">1076</span>      @Override<a name="line.1076"></a>
-<span class="sourceLineNo">1077</span>      public void call(MasterObserver oserver,<a name="line.1077"></a>
-<span class="sourceLineNo">1078</span>          ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx) throws IOException {<a name="line.1078"></a>
-<span class="sourceLineNo">1079</span>        oserver.postMergeRegionsCommitAction(ctx, regionsToMerge, mergedRegion);<a name="line.1079"></a>
-<span class="sourceLineNo">1080</span>      }<a name="line.1080"></a>
-<span class="sourceLineNo">1081</span>    });<a name="line.1081"></a>
-<span class="sourceLineNo">1082</span>  }<a name="line.1082"></a>
-<span class="sourceLineNo">1083</span><a name="line.1083"></a>
-<span class="sourceLineNo">1084</span>  /**<a name="line.1084"></a>
-<span class="sourceLineNo">1085</span>   * Invoked after rollback merge regions operation<a name="line.1085"></a>
-<span class="sourceLineNo">1086</span>   * @param regionsToMerge the regions to merge<a name="line.1086"></a>
-<span class="sourceLineNo">1087</span>   * @param user the user<a name="line.1087"></a>
-<span class="sourceLineNo">1088</span>   * @throws IOException<a name="line.1088"></a>
-<span class="sourceLineNo">1089</span>   */<a name="line.1089"></a>
-<span class="sourceLineNo">1090</span>  public void postRollBackMergeRegionsAction(<a name="line.1090"></a>
-<span class="sourceLineNo">1091</span>      final HRegionInfo[] regionsToMerge, final User user) throws IOException {<a name="line.1091"></a>
-<span class="sourceLineNo">1092</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.1092"></a>
+<span class="sourceLineNo">877</span>  /**<a name="line.877"></a>
+<span class="sourceLineNo">878</span>   * Invoked just before calling the split region procedure<a name="line.878"></a>
+<span class="sourceLineNo">879</span>   * @param tableName the table where the region belongs to<a name="line.879"></a>
+<span class="sourceLineNo">880</span>   * @param splitRow the split point<a name="line.880"></a>
+<span class="sourceLineNo">881</span>   * @throws IOException<a name="line.881"></a>
+<span class="sourceLineNo">882</span>   */<a name="line.882"></a>
+<span class="sourceLineNo">883</span>  public void preSplitRegion(<a name="line.883"></a>
+<span class="sourceLineNo">884</span>      final TableName tableName,<a name="line.884"></a>
+<span class="sourceLineNo">885</span>      final byte[] splitRow) throws IOException {<a name="line.885"></a>
+<span class="sourceLineNo">886</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.886"></a>
+<span class="sourceLineNo">887</span>      @Override<a name="line.887"></a>
+<span class="sourceLineNo">888</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.888"></a>
+<span class="sourceLineNo">889</span>          throws IOException {<a name="line.889"></a>
+<span class="sourceLineNo">890</span>        oserver.preSplitRegion(ctx, tableName, splitRow);<a name="line.890"></a>
+<span class="sourceLineNo">891</span>      }<a name="line.891"></a>
+<span class="sourceLineNo">892</span>    });<a name="line.892"></a>
+<span class="sourceLineNo">893</span>  }<a name="line.893"></a>
+<span class="sourceLineNo">894</span><a name="line.894"></a>
+<span class="sourceLineNo">895</span>  /**<a name="line.895"></a>
+<span class="sourceLineNo">896</span>   * Invoked just before a split<a name="line.896"></a>
+<span class="sourceLineNo">897</span>   * @param tableName the table where the region belongs to<a name="line.897"></a>
+<span class="sourceLineNo">898</span>   * @param splitRow the split point<a name="line.898"></a>
+<span class="sourceLineNo">899</span>   * @param user the user<a name="line.899"></a>
+<span class="sourceLineNo">900</span>   * @throws IOException<a name="line.900"></a>
+<span class="sourceLineNo">901</span>   */<a name="line.901"></a>
+<span class="sourceLineNo">902</span>  public void preSplitRegionAction(<a name="line.902"></a>
+<span class="sourceLineNo">903</span>      final TableName tableName,<a name="line.903"></a>
+<span class="sourceLineNo">904</span>      final byte[] splitRow,<a name="line.904"></a>
+<span class="sourceLineNo">905</span>      final User user) throws IOException {<a name="line.905"></a>
+<span class="sourceLineNo">906</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.906"></a>
+<span class="sourceLineNo">907</span>      @Override<a name="line.907"></a>
+<span class="sourceLineNo">908</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.908"></a>
+<span class="sourceLineNo">909</span>          throws IOException {<a name="line.909"></a>
+<span class="sourceLineNo">910</span>        oserver.preSplitRegionAction(ctx, tableName, splitRow);<a name="line.910"></a>
+<span class="sourceLineNo">911</span>      }<a name="line.911"></a>
+<span class="sourceLineNo">912</span>    });<a name="line.912"></a>
+<span class="sourceLineNo">913</span>  }<a name="line.913"></a>
+<span class="sourceLineNo">914</span><a name="line.914"></a>
+<span class="sourceLineNo">915</span>  /**<a name="line.915"></a>
+<span class="sourceLineNo">916</span>   * Invoked just after a split<a name="line.916"></a>
+<span class="sourceLineNo">917</span>   * @param regionInfoA the new left-hand daughter region<a name="line.917"></a>
+<span class="sourceLineNo">918</span>   * @param regionInfoB the new right-hand daughter region<a name="line.918"></a>
+<span class="sourceLineNo">919</span>   * @param user the user<a name="line.919"></a>
+<span class="sourceLineNo">920</span>   * @throws IOException<a name="line.920"></a>
+<span class="sourceLineNo">921</span>   */<a name="line.921"></a>
+<span class="sourceLineNo">922</span>  public void postCompletedSplitRegionAction(<a name="line.922"></a>
+<span class="sourceLineNo">923</span>      final HRegionInfo regionInfoA,<a name="line.923"></a>
+<span class="sourceLineNo">924</span>      final HRegionInfo regionInfoB,<a name="line.924"></a>
+<span class="sourceLineNo">925</span>      final User user) throws IOException {<a name="line.925"></a>
+<span class="sourceLineNo">926</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.926"></a>
+<span class="sourceLineNo">927</span>      @Override<a name="line.927"></a>
+<span class="sourceLineNo">928</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.928"></a>
+<span class="sourceLineNo">929</span>          throws IOException {<a name="line.929"></a>
+<span class="sourceLineNo">930</span>        oserver.postCompletedSplitRegionAction(ctx, regionInfoA, regionInfoB);<a name="line.930"></a>
+<span class="sourceLineNo">931</span>      }<a name="line.931"></a>
+<span class="sourceLineNo">932</span>    });<a name="line.932"></a>
+<span class="sourceLineNo">933</span>  }<a name="line.933"></a>
+<span class="sourceLineNo">934</span><a name="line.934"></a>
+<span class="sourceLineNo">935</span>  /**<a name="line.935"></a>
+<span class="sourceLineNo">936</span>   * This will be called before PONR step as part of split table region procedure.<a name="line.936"></a>
+<span class="sourceLineNo">937</span>   * @param splitKey<a name="line.937"></a>
+<span class="sourceLineNo">938</span>   * @param metaEntries<a name="line.938"></a>
+<span class="sourceLineNo">939</span>   * @param user the user<a name="line.939"></a>
+<span class="sourceLineNo">940</span>   * @throws IOException<a name="line.940"></a>
+<span class="sourceLineNo">941</span>   */<a name="line.941"></a>
+<span class="sourceLineNo">942</span>  public boolean preSplitBeforePONRAction(<a name="line.942"></a>
+<span class="sourceLineNo">943</span>      final byte[] splitKey,<a name="line.943"></a>
+<span class="sourceLineNo">944</span>      final List&lt;Mutation&gt; metaEntries,<a name="line.944"></a>
+<span class="sourceLineNo">945</span>      final User user) throws IOException {<a name="line.945"></a>
+<span class="sourceLineNo">946</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.946"></a>
+<span class="sourceLineNo">947</span>      @Override<a name="line.947"></a>
+<span class="sourceLineNo">948</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.948"></a>
+<span class="sourceLineNo">949</span>          throws IOException {<a name="line.949"></a>
+<span class="sourceLineNo">950</span>        oserver.preSplitRegionBeforePONRAction(ctx, splitKey, metaEntries);<a name="line.950"></a>
+<span class="sourceLineNo">951</span>      }<a name="line.951"></a>
+<span class="sourceLineNo">952</span>    });<a name="line.952"></a>
+<span class="sourceLineNo">953</span>  }<a name="line.953"></a>
+<span class="sourceLineNo">954</span><a name="line.954"></a>
+<span class="sourceLineNo">955</span>  /**<a name="line.955"></a>
+<span class="sourceLineNo">956</span>   * This will be called after PONR step as part of split table region procedure.<a name="line.956"></a>
+<span class="sourceLineNo">957</span>   * @param user the user<a name="line.957"></a>
+<span class="sourceLineNo">958</span>   * @throws IOException<a name="line.958"></a>
+<span class="sourceLineNo">959</span>   */<a name="line.959"></a>
+<span class="sourceLineNo">960</span>  public void preSplitAfterPONRAction(final User user) throws IOException {<a name="line.960"></a>
+<span class="sourceLineNo">961</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.961"></a>
+<span class="sourceLineNo">962</span>      @Override<a name="line.962"></a>
+<span class="sourceLineNo">963</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.963"></a>
+<span class="sourceLineNo">964</span>          throws IOException {<a name="line.964"></a>
+<span class="sourceLineNo">965</span>        oserver.preSplitRegionAfterPONRAction(ctx);<a name="line.965"></a>
+<span class="sourceLineNo">966</span>      }<a name="line.966"></a>
+<span class="sourceLineNo">967</span>    });<a name="line.967"></a>
+<span class="sourceLineNo">968</span>  }<a name="line.968"></a>
+<span class="sourceLineNo">969</span><a name="line.969"></a>
+<span class="sourceLineNo">970</span>  /**<a name="line.970"></a>
+<span class="sourceLineNo">971</span>   * Invoked just after the rollback of a failed split<a name="line.971"></a>
+<span class="sourceLineNo">972</span>   * @param user the user<a name="line.972"></a>
+<span class="sourceLineNo">973</span>   * @throws IOException<a name="line.973"></a>
+<span class="sourceLineNo">974</span>   */<a name="line.974"></a>
+<span class="sourceLineNo">975</span>  public void postRollBackSplitRegionAction(final User user) throws IOException {<a name="line.975"></a>
+<span class="sourceLineNo">976</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.976"></a>
+<span class="sourceLineNo">977</span>      @Override<a name="line.977"></a>
+<span class="sourceLineNo">978</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.978"></a>
+<span class="sourceLineNo">979</span>          throws IOException {<a name="line.979"></a>
+<span class="sourceLineNo">980</span>        oserver.postRollBackSplitRegionAction(ctx);<a name="line.980"></a>
+<span class="sourceLineNo">981</span>      }<a name="line.981"></a>
+<span class="sourceLineNo">982</span>    });<a name="line.982"></a>
+<span class="sourceLineNo">983</span>  }<a name="line.983"></a>
+<span class="sourceLineNo">984</span><a name="line.984"></a>
+<span class="sourceLineNo">985</span>  /**<a name="line.985"></a>
+<span class="sourceLineNo">986</span>   * Invoked just before a merge<a name="line.986"></a>
+<span class="sourceLineNo">987</span>   * @param regionsToMerge the regions to merge<a name="line.987"></a>
+<span class="sourceLineNo">988</span>   * @param user the user<a name="line.988"></a>
+<span class="sourceLineNo">989</span>   * @throws IOException<a name="line.989"></a>
+<span class="sourceLineNo">990</span>   */<a name="line.990"></a>
+<span class="sourceLineNo">991</span>  public boolean preMergeRegionsAction(<a name="line.991"></a>
+<span class="sourceLineNo">992</span>      final HRegionInfo[] regionsToMerge, final User user) throws IOException {<a name="line.992"></a>
+<span class="sourceLineNo">993</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.993"></a>
+<span class="sourceLineNo">994</span>      @Override<a name="line.994"></a>
+<span class="sourceLineNo">995</span>      public void call(MasterObserver oserver,<a name="line.995"></a>
+<span class="sourceLineNo">996</span>          ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx) throws IOException {<a name="line.996"></a>
+<span class="sourceLineNo">997</span>        oserver.preMergeRegionsAction(ctx, regionsToMerge);<a name="line.997"></a>
+<span class="sourceLineNo">998</span>      }<a name="line.998"></a>
+<span class="sourceLineNo">999</span>    });<a name="line.999"></a>
+<span class="sourceLineNo">1000</span>  }<a name="line.1000"></a>
+<span class="sourceLineNo">1001</span><a name="line.1001"></a>
+<span class="sourceLineNo">1002</span>  /**<a name="line.1002"></a>
+<span class="sourceLineNo">1003</span>   * Invoked after completing merge regions operation<a name="line.1003"></a>
+<span class="sourceLineNo">1004</span>   * @param regionsToMerge the regions to merge<a name="line.1004"></a>
+<span class="sourceLineNo">1005</span>   * @param mergedRegion the new merged region<a name="line.1005"></a>
+<span class="sourceLineNo">1006</span>   * @param user the user<a name="line.1006"></a>
+<span class="sourceLineNo">1007</span>   * @throws IOException<a name="line.1007"></a>
+<span class="sourceLineNo">1008</span>   */<a name="line.1008"></a>
+<span class="sourceLineNo">1009</span>  public void postCompletedMergeRegionsAction(<a name="line.1009"></a>
+<span class="sourceLineNo">1010</span>      final HRegionInfo[] regionsToMerge,<a name="line.1010"></a>
+<span class="sourceLineNo">1011</span>      final HRegionInfo mergedRegion,<a name="line.1011"></a>
+<span class="sourceLineNo">1012</span>      final User user) throws IOException {<a name="line.1012"></a>
+<span class="sourceLineNo">1013</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.1013"></a>
+<span class="sourceLineNo">1014</span>      @Override<a name="line.1014"></a>
+<span class="sourceLineNo">1015</span>      public void call(MasterObserver oserver,<a name="line.1015"></a>
+<span class="sourceLineNo">1016</span>          ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx) throws IOException {<a name="line.1016"></a>
+<span class="sourceLineNo">1017</span>        oserver.postCompletedMergeRegionsAction(ctx, regionsToMerge, mergedRegion);<a name="line.1017"></a>
+<span class="sourceLineNo">1018</span>      }<a name="line.1018"></a>
+<span class="sourceLineNo">1019</span>    });<a name="line.1019"></a>
+<span class="sourceLineNo">1020</span>  }<a name="line.1020"></a>
+<span class="sourceLineNo">1021</span><a name="line.1021"></a>
+<span class="sourceLineNo">1022</span>  /**<a name="line.1022"></a>
+<span class="sourceLineNo">1023</span>   * Invoked before merge regions operation writes the new region to hbase:meta<a name="line.1023"></a>
+<span class="sourceLineNo">1024</span>   * @param regionsToMerge the regions to merge<a name="line.1024"></a>
+<span class="sourceLineNo">1025</span>   * @param metaEntries the meta entry<a name="line.1025"></a>
+<span class="sourceLineNo">1026</span>   * @param user the user<a name="line.1026"></a>
+<span class="sourceLineNo">1027</span>   * @throws IOException<a name="line.1027"></a>
+<span class="sourceLineNo">1028</span>   */<a name="line.1028"></a>
+<span class="sourceLineNo">1029</span>  public boolean preMergeRegionsCommit(<a name="line.1029"></a>
+<span class="sourceLineNo">1030</span>      final HRegionInfo[] regionsToMerge,<a name="line.1030"></a>
+<span class="sourceLineNo">1031</span>      final @MetaMutationAnnotation List&lt;Mutation&gt; metaEntries,<a name="line.1031"></a>
+<span class="sourceLineNo">1032</span>      final User user) throws IOException {<a name="line.1032"></a>
+<span class="sourceLineNo">1033</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.1033"></a>
+<span class="sourceLineNo">1034</span>      @Override<a name="line.1034"></a>
+<span class="sourceLineNo">1035</span>      public void call(MasterObserver oserver,<a name="line.1035"></a>
+<span class="sourceLineNo">1036</span>          ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx) throws IOException {<a name="line.1036"></a>
+<span class="sourceLineNo">1037</span>        oserver.preMergeRegionsCommitAction(ctx, regionsToMerge, metaEntries);<a name="line.1037"></a>
+<span class="sourceLineNo">1038</span>      }<a name="line.1038"></a>
+<span class="sourceLineNo">1039</span>    });<a name="line.1039"></a>
+<span class="sourceLineNo">1040</span>  }<a name="line.1040"></a>
+<span class="sourceLineNo">1041</span><a name="line.1041"></a>
+<span class="sourceLineNo">1042</span>  /**<a name="line.1042"></a>
+<span class="sourceLineNo">1043</span>   * Invoked after merge regions operation writes the new region to hbase:meta<a name="line.1043"></a>
+<span class="sourceLineNo">1044</span>   * @param regionsToMerge the regions to merge<a name="line.1044"></a>
+<span class="sourceLineNo">1045</span>   * @param mergedRegion the new merged region<a name="line.1045"></a>
+<span class="sourceLineNo">1046</span>   * @param user the user<a name="line.1046"></a>
+<span class="sourceLineNo">1047</span>   * @throws IOException<a name="line.1047"></a>
+<span class="sourceLineNo">1048</span>   */<a name="line.1048"></a>
+<span class="sourceLineNo">1049</span>  public void postMergeRegionsCommit(<a name="line.1049"></a>
+<span class="sourceLineNo">1050</span>      final HRegionInfo[] regionsToMerge,<a name="line.1050"></a>
+<span class="sourceLineNo">1051</span>      final HRegionInfo mergedRegion,<a name="line.1051"></a>
+<span class="sourceLineNo">1052</span>      final User user) throws IOException {<a name="line.1052"></a>
+<span class="sourceLineNo">1053</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.1053"></a>
+<span class="sourceLineNo">1054</span>      @Override<a name="line.1054"></a>
+<span class="sourceLineNo">1055</span>      public void call(MasterObserver oserver,<a name="line.1055"></a>
+<span class="sourceLineNo">1056</span>          ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx) throws IOException {<a name="line.1056"></a>
+<span class="sourceLineNo">1057</span>        oserver.postMergeRegionsCommitAction(ctx, regionsToMerge, mergedRegion);<a name="line.1057"></a>
+<span class="sourceLineNo">1058</span>      }<a name="line.1058"></a>
+<span class="sourceLineNo">1059</span>    });<a name="line.1059"></a>
+<span class="sourceLineNo">1060</span>  }<a name="line.1060"></a>
+<span class="sourceLineNo">1061</span><a name="line.1061"></a>
+<span class="sourceLineNo">1062</span>  /**<a name="line.1062"></a>
+<span class="sourceLineNo">1063</span>   * Invoked after rollback merge regions operation<a name="line.1063"></a>
+<span class="sourceLineNo">1064</span>   * @param regionsToMerge the regions to merge<a name="line.1064"></a>
+<span class="sourceLineNo">1065</span>   * @param user the user<a name="line.1065"></a>
+<span class="sourceLineNo">1066</span>   * @throws IOException<a name="line.1066"></a>
+<span class="sourceLineNo">1067</span>   */<a name="line.1067"></a>
+<span class="sourceLineNo">1068</span>  public void postRollBackMergeRegionsAction(<a name="line.1068"></a>
+<span class="sourceLineNo">1069</span>      final HRegionInfo[] regionsToMerge, final User user) throws IOException {<a name="line.1069"></a>
+<span class="sourceLineNo">1070</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation(user) {<a name="line.1070"></a>
+<span class="sourceLineNo">1071</span>      @Override<a name="line.1071"></a>
+<span class="sourceLineNo">1072</span>      public void call(MasterObserver oserver,<a name="line.1072"></a>
+<span class="sourceLineNo">1073</span>          ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx) throws IOException {<a name="line.1073"></a>
+<span class="sourceLineNo">1074</span>        oserver.postRollBackMergeRegionsAction(ctx, regionsToMerge);<a name="line.1074"></a>
+<span class="sourceLineNo">1075</span>      }<a name="line.1075"></a>
+<span class="sourceLineNo">1076</span>    });<a name="line.1076"></a>
+<span class="sourceLineNo">1077</span>  }<a name="line.1077"></a>
+<span class="sourceLineNo">1078</span><a name="line.1078"></a>
+<span class="sourceLineNo">1079</span>  public boolean preBalanceSwitch(final boolean b) throws IOException {<a name="line.1079"></a>
+<span class="sourceLineNo">1080</span>    return execOperationWithResult(b, coprocessors.isEmpty() ? null :<a name="line.1080"></a>
+<span class="sourceLineNo">1081</span>        new CoprocessorOperationWithResult&lt;Boolean&gt;() {<a name="line.1081"></a>
+<span class="sourceLineNo">1082</span>      @Override<a name="line.1082"></a>
+<span class="sourceLineNo">1083</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1083"></a>
+<span class="sourceLineNo">1084</span>          throws IOException {<a name="line.1084"></a>
+<span class="sourceLineNo">1085</span>        setResult(oserver.preBalanceSwitch(ctx, getResult()));<a name="line.1085"></a>
+<span class="sourceLineNo">1086</span>      }<a name="line.1086"></a>
+<span class="sourceLineNo">1087</span>    });<a name="line.1087"></a>
+<span class="sourceLineNo">1088</span>  }<a name="line.1088"></a>
+<span class="sourceLineNo">1089</span><a name="line.1089"></a>
+<span class="sourceLineNo">1090</span>  public void postBalanceSwitch(final boolean oldValue, final boolean newValue)<a name="line.1090"></a>
+<span class="sourceLineNo">1091</span>      throws IOException {<a name="line.1091"></a>
+<span class="sourceLineNo">1092</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1092"></a>
 <span class="sourceLineNo">1093</span>      @Override<a name="line.1093"></a>
-<span class="sourceLineNo">1094</span>      public void call(MasterObserver oserver,<a name="line.1094"></a>
-<span class="sourceLineNo">1095</span>          ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx) throws IOException {<a name="line.1095"></a>
-<span class="sourceLineNo">1096</span>        oserver.postRollBackMergeRegionsAction(ctx, regionsToMerge);<a name="line.1096"></a>
+<span class="sourceLineNo">1094</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1094"></a>
+<span class="sourceLineNo">1095</span>          throws IOException {<a name="line.1095"></a>
+<span class="sourceLineNo">1096</span>        oserver.postBalanceSwitch(ctx, oldValue, newValue);<a name="line.1096"></a>
 <span class="sourceLineNo">1097</span>      }<a name="line.1097"></a>
 <span class="sourceLineNo">1098</span>    });<a name="line.1098"></a>
 <span class="sourceLineNo">1099</span>  }<a name="line.1099"></a>
 <span class="sourceLineNo">1100</span><a name="line.1100"></a>
-<span class="sourceLineNo">1101</span>  public boolean preBalanceSwitch(final boolean b) throws IOException {<a name="line.1101"></a>
-<span class="sourceLineNo">1102</span>    return execOperationWithResult(b, coprocessors.isEmpty() ? null :<a name="line.1102"></a>
-<span class="sourceLineNo">1103</span>        new CoprocessorOperationWithResult&lt;Boolean&gt;() {<a name="line.1103"></a>
-<span class="sourceLineNo">1104</span>      @Override<a name="line.1104"></a>
-<span class="sourceLineNo">1105</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1105"></a>
-<span class="sourceLineNo">1106</span>          throws IOException {<a name="line.1106"></a>
-<span class="sourceLineNo">1107</span>        setResult(oserver.preBalanceSwitch(ctx, getResult()));<a name="line.1107"></a>
-<span class="sourceLineNo">1108</span>      }<a name="line.1108"></a>
-<span class="sourceLineNo">1109</span>    });<a name="line.1109"></a>
-<span class="sourceLineNo">1110</span>  }<a name="line.1110"></a>
-<span class="sourceLineNo">1111</span><a name="line.1111"></a>
-<span class="sourceLineNo">1112</span>  public void postBalanceSwitch(final boolean oldValue, final boolean newValue)<a name="line.1112"></a>
-<span class="sourceLineNo">1113</span>      throws IOException {<a name="line.1113"></a>
-<span class="sourceLineNo">1114</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1114"></a>
-<span class="sourceLineNo">1115</span>      @Override<a name="line.1115"></a>
-<span class="sourceLineNo">1116</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1116"></a>
-<span class="sourceLineNo">1117</span>          throws IOException {<a name="line.1117"></a>
-<span class="sourceLineNo">1118</span>        oserver.postBalanceSwitch(ctx, oldValue, newValue);<a name="line.1118"></a>
-<span class="sourceLineNo">1119</span>      }<a name="line.1119"></a>
-<span class="sourceLineNo">1120</span>    });<a name="line.1120"></a>
-<span class="sourceLineNo">1121</span>  }<a name="line.1121"></a>
-<span class="sourceLineNo">1122</span><a name="line.1122"></a>
-<span class="sourceLineNo">1123</span>  public void preShutdown() throws IOException {<a name="line.1123"></a>
-<span class="sourceLineNo">1124</span>    // While stopping the cluster all coprocessors method should be executed first then the<a name="line.1124"></a>
-<span class="sourceLineNo">1125</span>    // coprocessor should be cleaned up.<a name="line.1125"></a>
-<span class="sourceLineNo">1126</span>    execShutdown(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1126"></a>
+<span class="sourceLineNo">1101</span>  public void preShutdown() throws IOException {<a name="line.1101"></a>
+<span class="sourceLineNo">1102</span>    // While stopping the cluster all coprocessors method should be executed first then the<a name="line.1102"></a>
+<span class="sourceLineNo">1103</span>    // coprocessor should be cleaned up.<a name="line.1103"></a>
+<span class="sourceLineNo">1104</span>    execShutdown(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1104"></a>
+<span class="sourceLineNo">1105</span>      @Override<a name="line.1105"></a>
+<span class="sourceLineNo">1106</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1106"></a>
+<span class="sourceLineNo">1107</span>          throws IOException {<a name="line.1107"></a>
+<span class="sourceLineNo">1108</span>        oserver.preShutdown(ctx);<a name="line.1108"></a>
+<span class="sourceLineNo">1109</span>      }<a name="line.1109"></a>
+<span class="sourceLineNo">1110</span>      @Override<a name="line.1110"></a>
+<span class="sourceLineNo">1111</span>      public void postEnvCall(MasterEnvironment env) {<a name="line.1111"></a>
+<span class="sourceLineNo">1112</span>        // invoke coprocessor stop method<a name="line.1112"></a>
+<span class="sourceLineNo">1113</span>        shutdown(env);<a name="line.1113"></a>
+<span class="sourceLineNo">1114</span>      }<a name="line.1114"></a>
+<span class="sourceLineNo">1115</span>    });<a name="line.1115"></a>
+<span class="sourceLineNo">1116</span>  }<a name="line.1116"></a>
+<span class="sourceLineNo">1117</span><a name="line.1117"></a>
+<span class="sourceLineNo">1118</span>  public void preStopMaster() throws IOException {<a name="line.1118"></a>
+<span class="sourceLineNo">1119</span>    // While stopping master all coprocessors method should be executed first then the coprocessor<a name="line.1119"></a>
+<span class="sourceLineNo">1120</span>    // environment should be cleaned up.<a name="line.1120"></a>
+<span class="sourceLineNo">1121</span>    execShutdown(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1121"></a>
+<span class="sourceLineNo">1122</span>      @Override<a name="line.1122"></a>
+<span class="sourceLineNo">1123</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1123"></a>
+<span class="sourceLineNo">1124</span>          throws IOException {<a name="line.1124"></a>
+<span class="sourceLineNo">1125</span>        oserver.preStopMaster(ctx);<a name="line.1125"></a>
+<span class="sourceLineNo">1126</span>      }<a name="line.1126"></a>
 <span class="sourceLineNo">1127</span>      @Override<a name="line.1127"></a>
-<span class="sourceLineNo">1128</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1128"></a>
-<span class="sourceLineNo">1129</span>          throws IOException {<a name="line.1129"></a>
-<span class="sourceLineNo">1130</span>        oserver.preShutdown(ctx);<a name="line.1130"></a>
+<span class="sourceLineNo">1128</span>      public void postEnvCall(MasterEnvironment env) {<a name="line.1128"></a>
+<span class="sourceLineNo">1129</span>        // invoke coprocessor stop method<a name="line.1129"></a>
+<span class="sourceLineNo">1130</span>        shutdown(env);<a name="line.1130"></a>
 <span class="sourceLineNo">1131</span>      }<a name="line.1131"></a>
-<span class="sourceLineNo">1132</span>      @Override<a name="line.1132"></a>
-<span class="sourceLineNo">1133</span>      public void postEnvCall(MasterEnvironment env) {<a name="line.1133"></a>
-<span class="sourceLineNo">1134</span>        // invoke coprocessor stop method<a name="line.1134"></a>
-<span class="sourceLineNo">1135</span>        shutdown(env);<a name="line.1135"></a>
-<span class="sourceLineNo">1136</span>      }<a name="line.1136"></a>
-<span class="sourceLineNo">1137</span>    });<a name="line.1137"></a>
-<span class="sourceLineNo">1138</span>  }<a name="line.1138"></a>
-<span class="sourceLineNo">1139</span><a name="line.1139"></a>
-<span class="sourceLineNo">1140</span>  public void preStopMaster() throws IOException {<a name="line.1140"></a>
-<span class="sourceLineNo">1141</span>    // While stopping master all coprocessors method should be executed first then the coprocessor<a name="line.1141"></a>
-<span class="sourceLineNo">1142</span>    // environment should be cleaned up.<a name="line.1142"></a>
-<span class="sourceLineNo">1143</span>    execShutdown(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1143"></a>
-<span class="sourceLineNo">1144</span>      @Override<a name="line.1144"></a>
-<span class="sourceLineNo">1145</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1145"></a>
-<span class="sourceLineNo">1146</span>          throws IOException {<a name="line.1146"></a>
-<span class="sourceLineNo">1147</span>        oserver.preStopMaster(ctx);<a name="line.1147"></a>
-<span class="sourceLineNo">1148</span>      }<a name="line.1148"></a>
-<span class="sourceLineNo">1149</span>      @Override<a name="line.1149"></a>
-<span class="sourceLineNo">1150</span>      public void postEnvCall(MasterEnvironment env) {<a name="line.1150"></a>
-<span class="sourceLineNo">1151</span>        // invoke coprocessor stop method<a name="line.1151"></a>
-<span class="sourceLineNo">1152</span>        shutdown(env);<a name="line.1152"></a>
-<span class="sourceLineNo">1153</span>      }<a name="line.1153"></a>
-<span class="sourceLineNo">1154</span>    });<a name="line.1154"></a>
-<span class="sourceLineNo">1155</span>  }<a name="line.1155"></a>
-<span class="sourceLineNo">1156</span><a name="line.1156"></a>
-<span class="sourceLineNo">1157</span>  public void preMasterInitialization() throws IOException {<a name="line.1157"></a>
-<span class="sourceLineNo">1158</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1158"></a>
-<span class="sourceLineNo">1159</span>      @Override<a name="line.1159"></a>
-<span class="sourceLineNo">1160</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1160"></a>
-<span class="sourceLineNo">1161</span>          throws IOException {<a name="line.1161"></a>
-<span class="sourceLineNo">1162</span>        oserver.preMasterInitialization(ctx);<a name="line.1162"></a>
-<span class="sourceLineNo">1163</span>      }<a name="line.1163"></a>
-<span class="sourceLineNo">1164</span>    });<a name="line.1164"></a>
-<span class="sourceLineNo">1165</span>  }<a name="line.1165"></a>
-<span class="sourceLineNo">1166</span><a name="line.1166"></a>
-<span class="sourceLineNo">1167</span>  public void postStartMaster() throws IOException {<a name="line.1167"></a>
+<span class="sourceLineNo">1132</span>    });<a name="line.1132"></a>
+<span class="sourceLineNo">1133</span>  }<a name="line.1133"></a>
+<span class="sourceLineNo">1134</span><a name="line.1134"></a>
+<span class="sourceLineNo">1135</span>  public void preMasterInitialization() throws IOException {<a name="line.1135"></a>
+<span class="sourceLineNo">1136</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1136"></a>
+<span class="sourceLineNo">1137</span>      @Override<a name="line.1137"></a>
+<span class="sourceLineNo">1138</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1138"></a>
+<span class="sourceLineNo">1139</span>          throws IOException {<a name="line.1139"></a>
+<span class="sourceLineNo">1140</span>        oserver.preMasterInitialization(ctx);<a name="line.1140"></a>
+<span class="sourceLineNo">1141</span>      }<a name="line.1141"></a>
+<span class="sourceLineNo">1142</span>    });<a name="line.1142"></a>
+<span class="sourceLineNo">1143</span>  }<a name="line.1143"></a>
+<span class="sourceLineNo">1144</span><a name="line.1144"></a>
+<span class="sourceLineNo">1145</span>  public void postStartMaster() throws IOException {<a name="line.1145"></a>
+<span class="sourceLineNo">1146</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1146"></a>
+<span class="sourceLineNo">1147</span>      @Override<a name="line.1147"></a>
+<span class="sourceLineNo">1148</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1148"></a>
+<span class="sourceLineNo">1149</span>          throws IOException {<a name="line.1149"></a>
+<span class="sourceLineNo">1150</span>        oserver.postStartMaster(ctx);<a name="line.1150"></a>
+<span class="sourceLineNo">1151</span>      }<a name="line.1151"></a>
+<span class="sourceLineNo">1152</span>    });<a name="line.1152"></a>
+<span class="sourceLineNo">1153</span>  }<a name="line.1153"></a>
+<span class="sourceLineNo">1154</span><a name="line.1154"></a>
+<span class="sourceLineNo">1155</span>  public void preSnapshot(final SnapshotDescription snapshot,<a name="line.1155"></a>
+<span class="sourceLineNo">1156</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.1156"></a>
+<span class="sourceLineNo">1157</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1157"></a>
+<span class="sourceLineNo">1158</span>      @Override<a name="line.1158"></a>
+<span class="sourceLineNo">1159</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1159"></a>
+<span class="sourceLineNo">1160</span>          throws IOException {<a name="line.1160"></a>
+<span class="sourceLineNo">1161</span>        oserver.preSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.1161"></a>
+<span class="sourceLineNo">1162</span>      }<a name="line.1162"></a>
+<span class="sourceLineNo">1163</span>    });<a name="line.1163"></a>
+<span class="sourceLineNo">1164</span>  }<a name="line.1164"></a>
+<span class="sourceLineNo">1165</span><a name="line.1165"></a>
+<span class="sourceLineNo">1166</span>  public void postSnapshot(final SnapshotDescription snapshot,<a name="line.1166"></a>
+<span class="sourceLineNo">1167</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.1167"></a>
 <span class="sourceLineNo">1168</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1168"></a>
 <span class="sourceLineNo">1169</span>      @Override<a name="line.1169"></a>
 <span class="sourceLineNo">1170</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1170"></a>
 <span class="sourceLineNo">1171</span>          throws IOException {<a name="line.1171"></a>
-<span class="sourceLineNo">1172</span>        oserver.postStartMaster(ctx);<a name="line.1172"></a>
+<span class="sourceLineNo">1172</span>        oserver.postSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.1172"></a>
 <span class="sourceLineNo">1173</span>      }<a name="line.1173"></a>
 <span class="sourceLineNo">1174</span>    });<a name="line.1174"></a>
 <span class="sourceLineNo">1175</span>  }<a name="line.1175"></a>
 <span class="sourceLineNo">1176</span><a name="line.1176"></a>
-<span class="sourceLineNo">1177</span>  public void preSnapshot(final SnapshotDescription snapshot,<a name="line.1177"></a>
-<span class="sourceLineNo">1178</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.1178"></a>
-<span class="sourceLineNo">1179</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1179"></a>
-<span class="sourceLineNo">1180</span>      @Override<a name="line.1180"></a>
-<span class="sourceLineNo">1181</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1181"></a>
-<span class="sourceLineNo">1182</span>          throws IOException {<a name="line.1182"></a>
-<span class="sourceLineNo">1183</span>        oserver.preSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.1183"></a>
-<span class="sourceLineNo">1184</span>      }<a name="line.1184"></a>
-<span class="sourceLineNo">1185</span>    });<a name="line.1185"></a>
-<span class="sourceLineNo">1186</span>  }<a name="line.1186"></a>
-<span class="sourceLineNo">1187</span><a name="line.1187"></a>
-<span class="sourceLineNo">1188</span>  public void postSnapshot(final SnapshotDescription snapshot,<a name="line.1188"></a>
-<span class="sourceLineNo">1189</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.1189"></a>
-<span class="sourceLineNo">1190</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1190"></a>
-<span class="sourceLineNo">1191</span>      @Override<a name="line.1191"></a>
-<span class="sourceLineNo">1192</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1192"></a>
-<span class="sourceLineNo">1193</span>          throws IOException {<a name="line.1193"></a>
-<span class="sourceLineNo">1194</span>        oserver.postSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.1194"></a>
-<span class="sourceLineNo">1195</span>      }<a name="line.1195"></a>
-<span class="sourceLineNo">1196</span>    });<a name="line.1196"></a>
-<span class="sourceLineNo">1197</span>  }<a name="line.1197"></a>
-<span class="sourceLineNo">1198</span><a name="line.1198"></a>
-<span class="sourceLineNo">1199</span>  public void preListSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.1199"></a>
-<span class="sourceLineNo">1200</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1200"></a>
-<span class="sourceLineNo">1201</span>      @Override<a name="line.1201"></a>
-<span class="sourceLineNo">1202</span>      public void call(MasterObserver observer, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1202"></a>
-<span class="sourceLineNo">1203</span>          throws IOException {<a name="line.1203"></a>
-<span class="sourceLineNo">1204</span>        observer.preListSnapshot(ctx, snapshot);<a name="line.1204"></a>
-<span class="sourceLineNo">1205</span>      }<a name="line.1205"></a>
-<span class="sourceLineNo">1206</span>    });<a name="line.1206"></a>
-<span class="sourceLineNo">1207</span>  }<a name="line.1207"></a>
-<span class="sourceLineNo">1208</span><a name="line.1208"></a>
-<span class="sourceLineNo">1209</span>  public void postListSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.1209"></a>
+<span class="sourceLineNo">1177</span>  public void preListSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.1177"></a>
+<span class="sourceLineNo">1178</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1178"></a>
+<span class="sourceLineNo">1179</span>      @Override<a name="line.1179"></a>
+<span class="sourceLineNo">1180</span>      public void call(MasterObserver observer, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1180"></a>
+<span class="sourceLineNo">1181</span>          throws IOException {<a name="line.1181"></a>
+<span class="sourceLineNo">1182</span>        observer.preListSnapshot(ctx, snapshot);<a name="line.1182"></a>
+<span class="sourceLineNo">1183</span>      }<a name="line.1183"></a>
+<span class="sourceLineNo">1184</span>    });<a name="line.1184"></a>
+<span class="sourceLineNo">1185</span>  }<a name="line.1185"></a>
+<span class="sourceLineNo">1186</span><a name="line.1186"></a>
+<span class="sourceLineNo">1187</span>  public void postListSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.1187"></a>
+<span class="sourceLineNo">1188</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1188"></a>
+<span class="sourceLineNo">1189</span>      @Override<a name="line.1189"></a>
+<span class="sourceLineNo">1190</span>      public void call(MasterObserver observer, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1190"></a>
+<span class="sourceLineNo">1191</span>          throws IOException {<a name="line.1191"></a>
+<span class="sourceLineNo">1192</span>        observer.postListSnapshot(ctx, snapshot);<a name="line.1192"></a>
+<span class="sourceLineNo">1193</span>      }<a name="line.1193"></a>
+<span class="sourceLineNo">1194</span>    });<a name="line.1194"></a>
+<span class="sourceLineNo">1195</span>  }<a name="line.1195"></a>
+<span class="sourceLineNo">1196</span><a name="line.1196"></a>
+<span class="sourceLineNo">1197</span>  public void preCloneSnapshot(final SnapshotDescription snapshot,<a name="line.1197"></a>
+<span class="sourceLineNo">1198</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.1198"></a>
+<span class="sourceLineNo">1199</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1199"></a>
+<span class="sourceLineNo">1200</span>      @Override<a name="line.1200"></a>
+<span class="sourceLineNo">1201</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1201"></a>
+<span class="sourceLineNo">1202</span>          throws IOException {<a name="line.1202"></a>
+<span class="sourceLineNo">1203</span>        oserver.preCloneSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.1203"></a>
+<span class="sourceLineNo">1204</span>      }<a name="line.1204"></a>
+<span class="sourceLineNo">1205</span>    });<a name="line.1205"></a>
+<span class="sourceLineNo">1206</span>  }<a name="line.1206"></a>
+<span class="sourceLineNo">1207</span><a name="line.1207"></a>
+<span class="sourceLineNo">1208</span>  public void postCloneSnapshot(final SnapshotDescription snapshot,<a name="line.1208"></a>
+<span class="sourceLineNo">1209</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.1209"></a>
 <span class="sourceLineNo">1210</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1210"></a>
 <span class="sourceLineNo">1211</span>      @Override<a name="line.1211"></a>
-<span class="sourceLineNo">1212</span>      public void call(MasterObserver observer, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1212"></a>
+<span class="sourceLineNo">1212</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1212"></a>
 <span class="sourceLineNo">1213</span>          throws IOException {<a name="line.1213"></a>
-<span class="sourceLineNo">1214</span>        observer.postListSnapshot(ctx, snapshot);<a name="line.1214"></a>
+<span class="sourceLineNo">1214</span>        oserver.postCloneSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.1214"></a>
 <span class="sourceLineNo">1215</span>      }<a name="line.1215"></a>
 <span class="sourceLineNo">1216</span>    });<a name="line.1216"></a>
 <span class="sourceLineNo">1217</span>  }<a name="line.1217"></a>
 <span class="sourceLineNo">1218</span><a name="line.1218"></a>
-<span class="sourceLineNo">1219</span>  public void preCloneSnapshot(final SnapshotDescription snapshot,<a name="line.1219"></a>
+<span class="sourceLineNo">1219</span>  public void preRestoreSnapshot(final SnapshotDescription snapshot,<a name="line.1219"></a>
 <span class="sourceLineNo">1220</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.1220"></a>
 <span class="sourceLineNo">1221</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1221"></a>
 <span class="sourceLineNo">1222</span>      @Override<a name="line.1222"></a>
 <span class="sourceLineNo">1223</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1223"></a>
 <span class="sourceLineNo">1224</span>          throws IOException {<a name="line.1224"></a>
-<span class="sourceLineNo">1225</span>        oserver.preCloneSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.1225"></a>
+<span class="sourceLineNo">1225</span>        oserver.preRestoreSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.1225"></a>
 <span class="sourceLineNo">1226</span>      }<a name="line.1226"></a>
 <span class="sourceLineNo">1227</span>    });<a name="line.1227"></a>
 <span class="sourceLineNo">1228</span>  }<a name="line.1228"></a>
 <span class="sourceLineNo">1229</span><a name="line.1229"></a>
-<span class="sourceLineNo">1230</span>  public void postCloneSnapshot(final SnapshotDescription snapshot,<a name="line.1230"></a>
+<span class="sourceLineNo">1230</span>  public void postRestoreSnapshot(final SnapshotDescription snapshot,<a name="line.1230"></a>
 <span class="sourceLineNo">1231</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.1231"></a>
 <span class="sourceLineNo">1232</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1232"></a>
 <span class="sourceLineNo">1233</span>      @Override<a name="line.1233"></a>
 <span class="sourceLineNo">1234</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1234"></a>
 <span class="sourceLineNo">1235</span>          throws IOException {<a name="line.1235"></a>
-<span class="sourceLineNo">1236</span>        oserver.postCloneSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.1236"></a>
+<span class="sourceLineNo">1236</span>        oserver.postRestoreSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.1236"></a>
 <span class="sourceLineNo">1237</span>      }<a name="line.1237"></a>
 <span class="sourceLineNo">1238</span>    });<a name="line.1238"></a>
 <span class="sourceLineNo">1239</span>  }<a name="line.1239"></a>
 <span class="sourceLineNo">1240</span><a name="line.1240"></a>
-<span class="sourceLineNo">1241</span>  public void preRestoreSnapshot(final SnapshotDescription snapshot,<a name="line.1241"></a>
-<span class="sourceLineNo">1242</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.1242"></a>
-<span class="sourceLineNo">1243</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1243"></a>
-<span class="sourceLineNo">1244</span>      @Override<a name="line.1244"></a>
-<span class="sourceLineNo">1245</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1245"></a>
-<span class="sourceLineNo">1246</span>          throws IOException {<a name="line.1246"></a>
-<span class="sourceLineNo">1247</span>        oserver.preRestoreSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.1247"></a>
-<span class="sourceLineNo">1248</span>      }<a name="line.1248"></a>
-<span class="sourceLineNo">1249</span>    });<a name="line.1249"></a>
-<span class="sourceLineNo">1250</span>  }<a name="line.1250"></a>
-<span class="sourceLineNo">1251</span><a name="line.1251"></a>
-<span class="sourceLineNo">1252</span>  public void postRestoreSnapshot(final SnapshotDescription snapshot,<a name="line.1252"></a>
-<span class="sourceLineNo">1253</span>      final HTableDescriptor hTableDescriptor) throws IOException {<a name="line.1253"></a>
-<span class="sourceLineNo">1254</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1254"></a>
-<span class="sourceLineNo">1255</span>      @Override<a name="line.1255"></a>
-<span class="sourceLineNo">1256</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1256"></a>
-<span class="sourceLineNo">1257</span>          throws IOException {<a name="line.1257"></a>
-<span class="sourceLineNo">1258</span>        oserver.postRestoreSnapshot(ctx, snapshot, hTableDescriptor);<a name="line.1258"></a>
-<span class="sourceLineNo">1259</span>      }<a name="line.1259"></a>
-<span class="sourceLineNo">1260</span>    });<a name="line.1260"></a>
-<span class="sourceLineNo">1261</span>  }<a name="line.1261"></a>
-<span class="sourceLineNo">1262</span><a name="line.1262"></a>
-<span class="sourceLineNo">1263</span>  public void preDeleteSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.1263"></a>
-<span class="sourceLineNo">1264</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1264"></a>
-<span class="sourceLineNo">1265</span>      @Override<a name="line.1265"></a>
-<span class="sourceLineNo">1266</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1266"></a>
-<span class="sourceLineNo">1267</span>          throws IOException {<a name="line.1267"></a>
-<span class="sourceLineNo">1268</span>        oserver.preDeleteSnapshot(ctx, snapshot);<a name="line.1268"></a>
-<span class="sourceLineNo">1269</span>      }<a name="line.1269"></a>
-<span class="sourceLineNo">1270</span>    });<a name="line.1270"></a>
-<span class="sourceLineNo">1271</span>  }<a name="line.1271"></a>
-<span class="sourceLineNo">1272</span><a name="line.1272"></a>
-<span class="sourceLineNo">1273</span>  public void postDeleteSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.1273"></a>
+<span class="sourceLineNo">1241</span>  public void preDeleteSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.1241"></a>
+<span class="sourceLineNo">1242</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1242"></a>
+<span class="sourceLineNo">1243</span>      @Override<a name="line.1243"></a>
+<span class="sourceLineNo">1244</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1244"></a>
+<span class="sourceLineNo">1245</span>          throws IOException {<a name="line.1245"></a>
+<span class="sourceLineNo">1246</span>        oserver.preDeleteSnapshot(ctx, snapshot);<a name="line.1246"></a>
+<span class="sourceLineNo">1247</span>      }<a name="line.1247"></a>
+<span class="sourceLineNo">1248</span>    });<a name="line.1248"></a>
+<span class="sourceLineNo">1249</span>  }<a name="line.1249"></a>
+<span class="sourceLineNo">1250</span><a name="line.1250"></a>
+<span class="sourceLineNo">1251</span>  public void postDeleteSnapshot(final SnapshotDescription snapshot) throws IOException {<a name="line.1251"></a>
+<span class="sourceLineNo">1252</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1252"></a>
+<span class="sourceLineNo">1253</span>      @Override<a name="line.1253"></a>
+<span class="sourceLineNo">1254</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1254"></a>
+<span class="sourceLineNo">1255</span>          throws IOException {<a name="line.1255"></a>
+<span class="sourceLineNo">1256</span>        oserver.postDeleteSnapshot(ctx, snapshot);<a name="line.1256"></a>
+<span class="sourceLineNo">1257</span>      }<a name="line.1257"></a>
+<span class="sourceLineNo">1258</span>    });<a name="line.1258"></a>
+<span class="sourceLineNo">1259</span>  }<a name="line.1259"></a>
+<span class="sourceLineNo">1260</span><a name="line.1260"></a>
+<span class="sourceLineNo">1261</span>  public boolean preGetTableDescriptors(final List&lt;TableName&gt; tableNamesList,<a name="line.1261"></a>
+<span class="sourceLineNo">1262</span>      final List&lt;HTableDescriptor&gt; descriptors, final String regex) throws IOException {<a name="line.1262"></a>
+<span class="sourceLineNo">1263</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1263"></a>
+<span class="sourceLineNo">1264</span>      @Override<a name="line.1264"></a>
+<span class="sourceLineNo">1265</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1265"></a>
+<span class="sourceLineNo">1266</span>          throws IOException {<a name="line.1266"></a>
+<span class="sourceLineNo">1267</span>        oserver.preGetTableDescriptors(ctx, tableNamesList, descriptors, regex);<a name="line.1267"></a>
+<span class="sourceLineNo">1268</span>      }<a name="line.1268"></a>
+<span class="sourceLineNo">1269</span>    });<a name="line.1269"></a>
+<span class="sourceLineNo">1270</span>  }<a name="line.1270"></a>
+<span class="sourceLineNo">1271</span><a name="line.1271"></a>
+<span class="sourceLineNo">1272</span>  public void postGetTableDescriptors(final List&lt;TableName&gt; tableNamesList,<a name="line.1272"></a>
+<span class="sourceLineNo">1273</span>      final List&lt;HTableDescriptor&gt; descriptors, final String regex) throws IOException {<a name="line.1273"></a>
 <span class="sourceLineNo">1274</span>    execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1274"></a>
 <span class="sourceLineNo">1275</span>      @Override<a name="line.1275"></a>
 <span class="sourceLineNo">1276</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1276"></a>
 <span class="sourceLineNo">1277</span>          throws IOException {<a name="line.1277"></a>
-<span class="sourceLineNo">1278</span>        oserver.postDeleteSnapshot(ctx, snapshot);<a name="line.1278"></a>
+<span class="sourceLineNo">1278</span>        oserver.postGetTableDescriptors(ctx, tableNamesList, descriptors, regex);<a name="line.1278"></a>
 <span class="sourceLineNo">1279</span>      }<a name="line.1279"></a>
 <span class="sourceLineNo">1280</span>    });<a name="line.1280"></a>
 <span class="sourceLineNo">1281</span>  }<a name="line.1281"></a>
 <span class="sourceLineNo">1282</span><a name="line.1282"></a>
-<span class="sourceLineNo">1283</span>  public boolean preGetTableDescriptors(final List&lt;TableName&gt; tableNamesList,<a name="line.1283"></a>
-<span class="sourceLineNo">1284</span>      final List&lt;HTableDescriptor&gt; descriptors, final String regex) throws IOException {<a name="line.1284"></a>
+<span class="sourceLineNo">1283</span>  public boolean preGetTableNames(final List&lt;HTableDescriptor&gt; descriptors,<a name="line.1283"></a>
+<span class="sourceLineNo">1284</span>      final String regex) throws IOException {<a name="line.1284"></a>
 <span class="sourceLineNo">1285</span>    return execOperation(coprocessors.isEmpty() ? null : new CoprocessorOperation() {<a name="line.1285"></a>
 <span class="sourceLineNo">1286</span>      @Override<a name="line.1286"></a>
 <span class="sourceLineNo">1287</span>      public void call(MasterObserver oserver, ObserverContext&lt;MasterCoprocessorEnvironment&gt; ctx)<a name="line.1287"></a>
 <span class="sourceLineNo">1288</span>          throws IOException {<a name="line.1288"></a>
-<span class="sourceLineNo">1289</span>        oserver.preGetTableDescriptors(ctx, tableNamesList, descriptors, regex);<a name="line.1289"></a>
+<span class="sourceLineNo">1289</span>        oserver.preGetTableNames(ctx, descriptors, regex);<a name="line.1289"></a>
 <span class="sourceLineNo">1290</span>      }<a name="line.1290"></a>
 <span class="sourceLineNo">1291</span>    });<a name="line.1291"></a>
 <span class="sourceLineNo">1292</span>  }<a name="line.1292"></a>
 <span class="sourceLineNo">1293</span><a name="line.1293"></a>
-<span cl

<TRUNCATED>

Mime
View raw message