hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [18/30] hbase-site git commit: Published site at .
Date Sat, 23 Sep 2017 15:13:54 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/dc5c2985/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionImplementation.ServerErrorTracker.ServerErrors.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionImplementation.ServerErrorTracker.ServerErrors.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionImplementation.ServerErrorTracker.ServerErrors.html
index 7b36f85..1f377e1 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionImplementation.ServerErrorTracker.ServerErrors.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionImplementation.ServerErrorTracker.ServerErrors.html
@@ -813,7 +813,7 @@
 <span class="sourceLineNo">805</span>    s.setReversed(true);<a name="line.805"></a>
 <span class="sourceLineNo">806</span>    s.withStartRow(metaKey);<a name="line.806"></a>
 <span class="sourceLineNo">807</span>    s.addFamily(HConstants.CATALOG_FAMILY);<a name="line.807"></a>
-<span class="sourceLineNo">808</span>    s.setOneRowLimit();<a name="line.808"></a>
+<span class="sourceLineNo">808</span><a name="line.808"></a>
 <span class="sourceLineNo">809</span>    if (this.useMetaReplicas) {<a name="line.809"></a>
 <span class="sourceLineNo">810</span>      s.setConsistency(Consistency.TIMELINE);<a name="line.810"></a>
 <span class="sourceLineNo">811</span>    }<a name="line.811"></a>
@@ -843,1238 +843,1239 @@
 <span class="sourceLineNo">835</span>      try {<a name="line.835"></a>
 <span class="sourceLineNo">836</span>        Result regionInfoRow = null;<a name="line.836"></a>
 <span class="sourceLineNo">837</span>        s.resetMvccReadPoint();<a name="line.837"></a>
-<span class="sourceLineNo">838</span>        try (ReversedClientScanner rcs =<a name="line.838"></a>
-<span class="sourceLineNo">839</span>            new ReversedClientScanner(conf, s, TableName.META_TABLE_NAME, this, rpcCallerFactory,<a name="line.839"></a>
-<span class="sourceLineNo">840</span>                rpcControllerFactory, getMetaLookupPool(), metaReplicaCallTimeoutScanInMicroSecond)) {<a name="line.840"></a>
-<span class="sourceLineNo">841</span>          regionInfoRow = rcs.next();<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>        if (regionInfoRow == null) {<a name="line.844"></a>
-<span class="sourceLineNo">845</span>          throw new TableNotFoundException(tableName);<a name="line.845"></a>
-<span class="sourceLineNo">846</span>        }<a name="line.846"></a>
-<span class="sourceLineNo">847</span>        // convert the row result into the HRegionLocation we need!<a name="line.847"></a>
-<span class="sourceLineNo">848</span>        RegionLocations locations = MetaTableAccessor.getRegionLocations(regionInfoRow);<a name="line.848"></a>
-<span class="sourceLineNo">849</span>        if (locations == null || locations.getRegionLocation(replicaId) == null) {<a name="line.849"></a>
-<span class="sourceLineNo">850</span>          throw new IOException("HRegionInfo was null in " +<a name="line.850"></a>
-<span class="sourceLineNo">851</span>            tableName + ", row=" + regionInfoRow);<a name="line.851"></a>
-<span class="sourceLineNo">852</span>        }<a name="line.852"></a>
-<span class="sourceLineNo">853</span>        HRegionInfo regionInfo = locations.getRegionLocation(replicaId).getRegionInfo();<a name="line.853"></a>
-<span class="sourceLineNo">854</span>        if (regionInfo == null) {<a name="line.854"></a>
-<span class="sourceLineNo">855</span>          throw new IOException("HRegionInfo was null or empty in " +<a name="line.855"></a>
-<span class="sourceLineNo">856</span>            TableName.META_TABLE_NAME + ", row=" + regionInfoRow);<a name="line.856"></a>
-<span class="sourceLineNo">857</span>        }<a name="line.857"></a>
-<span class="sourceLineNo">858</span><a name="line.858"></a>
-<span class="sourceLineNo">859</span>        // possible we got a region of a different table...<a name="line.859"></a>
-<span class="sourceLineNo">860</span>        if (!regionInfo.getTable().equals(tableName)) {<a name="line.860"></a>
-<span class="sourceLineNo">861</span>          throw new TableNotFoundException(<a name="line.861"></a>
-<span class="sourceLineNo">862</span>            "Region of '" + regionInfo.getRegionNameAsString() + "' is expected in the table of '" + tableName + "', " +<a name="line.862"></a>
-<span class="sourceLineNo">863</span>            "but hbase:meta says it is in the table of '" + regionInfo.getTable() + "'. " +<a name="line.863"></a>
-<span class="sourceLineNo">864</span>            "hbase:meta might be damaged.");<a name="line.864"></a>
-<span class="sourceLineNo">865</span>        }<a name="line.865"></a>
-<span class="sourceLineNo">866</span>        if (regionInfo.isSplit()) {<a name="line.866"></a>
-<span class="sourceLineNo">867</span>          throw new RegionOfflineException("the only available region for" +<a name="line.867"></a>
-<span class="sourceLineNo">868</span>            " the required row is a split parent," +<a name="line.868"></a>
-<span class="sourceLineNo">869</span>            " the daughters should be online soon: " +<a name="line.869"></a>
-<span class="sourceLineNo">870</span>            regionInfo.getRegionNameAsString());<a name="line.870"></a>
-<span class="sourceLineNo">871</span>        }<a name="line.871"></a>
-<span class="sourceLineNo">872</span>        if (regionInfo.isOffline()) {<a name="line.872"></a>
-<span class="sourceLineNo">873</span>          throw new RegionOfflineException("the region is offline, could" +<a name="line.873"></a>
-<span class="sourceLineNo">874</span>            " be caused by a disable table call: " +<a name="line.874"></a>
-<span class="sourceLineNo">875</span>            regionInfo.getRegionNameAsString());<a name="line.875"></a>
-<span class="sourceLineNo">876</span>        }<a name="line.876"></a>
-<span class="sourceLineNo">877</span><a name="line.877"></a>
-<span class="sourceLineNo">878</span>        ServerName serverName = locations.getRegionLocation(replicaId).getServerName();<a name="line.878"></a>
-<span class="sourceLineNo">879</span>        if (serverName == null) {<a name="line.879"></a>
-<span class="sourceLineNo">880</span>          throw new NoServerForRegionException("No server address listed " +<a name="line.880"></a>
-<span class="sourceLineNo">881</span>            "in " + TableName.META_TABLE_NAME + " for region " +<a name="line.881"></a>
-<span class="sourceLineNo">882</span>            regionInfo.getRegionNameAsString() + " containing row " +<a name="line.882"></a>
-<span class="sourceLineNo">883</span>            Bytes.toStringBinary(row));<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>        if (isDeadServer(serverName)){<a name="line.886"></a>
-<span class="sourceLineNo">887</span>          throw new RegionServerStoppedException("hbase:meta says the region "+<a name="line.887"></a>
-<span class="sourceLineNo">888</span>              regionInfo.getRegionNameAsString()+" is managed by the server " + serverName +<a name="line.888"></a>
-<span class="sourceLineNo">889</span>              ", but it is dead.");<a name="line.889"></a>
-<span class="sourceLineNo">890</span>        }<a name="line.890"></a>
-<span class="sourceLineNo">891</span>        // Instantiate the location<a name="line.891"></a>
-<span class="sourceLineNo">892</span>        cacheLocation(tableName, locations);<a name="line.892"></a>
-<span class="sourceLineNo">893</span>        return locations;<a name="line.893"></a>
-<span class="sourceLineNo">894</span>      } catch (TableNotFoundException e) {<a name="line.894"></a>
-<span class="sourceLineNo">895</span>        // if we got this error, probably means the table just plain doesn't<a name="line.895"></a>
-<span class="sourceLineNo">896</span>        // exist. rethrow the error immediately. this should always be coming<a name="line.896"></a>
-<span class="sourceLineNo">897</span>        // from the HTable constructor.<a name="line.897"></a>
-<span class="sourceLineNo">898</span>        throw e;<a name="line.898"></a>
-<span class="sourceLineNo">899</span>      } catch (IOException e) {<a name="line.899"></a>
-<span class="sourceLineNo">900</span>        ExceptionUtil.rethrowIfInterrupt(e);<a name="line.900"></a>
-<span class="sourceLineNo">901</span>        if (e instanceof RemoteException) {<a name="line.901"></a>
-<span class="sourceLineNo">902</span>          e = ((RemoteException)e).unwrapRemoteException();<a name="line.902"></a>
-<span class="sourceLineNo">903</span>        }<a name="line.903"></a>
-<span class="sourceLineNo">904</span>        if (e instanceof CallQueueTooBigException) {<a name="line.904"></a>
-<span class="sourceLineNo">905</span>          // Give a special check on CallQueueTooBigException, see #HBASE-17114<a name="line.905"></a>
-<span class="sourceLineNo">906</span>          pauseBase = this.pauseForCQTBE;<a name="line.906"></a>
-<span class="sourceLineNo">907</span>        }<a name="line.907"></a>
-<span class="sourceLineNo">908</span>        if (tries &lt; maxAttempts - 1) {<a name="line.908"></a>
-<span class="sourceLineNo">909</span>          if (LOG.isDebugEnabled()) {<a name="line.909"></a>
-<span class="sourceLineNo">910</span>            LOG.debug("locateRegionInMeta parentTable=" +<a name="line.910"></a>
-<span class="sourceLineNo">911</span>                TableName.META_TABLE_NAME + ", metaLocation=" +<a name="line.911"></a>
-<span class="sourceLineNo">912</span>              ", attempt=" + tries + " of " +<a name="line.912"></a>
-<span class="sourceLineNo">913</span>              maxAttempts + " failed; retrying after sleep of " +<a name="line.913"></a>
-<span class="sourceLineNo">914</span>              ConnectionUtils.getPauseTime(pauseBase, tries) + " because: " + e.getMessage());<a name="line.914"></a>
-<span class="sourceLineNo">915</span>          }<a name="line.915"></a>
-<span class="sourceLineNo">916</span>        } else {<a name="line.916"></a>
-<span class="sourceLineNo">917</span>          throw e;<a name="line.917"></a>
-<span class="sourceLineNo">918</span>        }<a name="line.918"></a>
-<span class="sourceLineNo">919</span>        // Only relocate the parent region if necessary<a name="line.919"></a>
-<span class="sourceLineNo">920</span>        if(!(e instanceof RegionOfflineException ||<a name="line.920"></a>
-<span class="sourceLineNo">921</span>            e instanceof NoServerForRegionException)) {<a name="line.921"></a>
-<span class="sourceLineNo">922</span>          relocateRegion(TableName.META_TABLE_NAME, metaKey, replicaId);<a name="line.922"></a>
-<span class="sourceLineNo">923</span>        }<a name="line.923"></a>
-<span class="sourceLineNo">924</span>      }<a name="line.924"></a>
-<span class="sourceLineNo">925</span>      try{<a name="line.925"></a>
-<span class="sourceLineNo">926</span>        Thread.sleep(ConnectionUtils.getPauseTime(pauseBase, tries));<a name="line.926"></a>
-<span class="sourceLineNo">927</span>      } catch (InterruptedException e) {<a name="line.927"></a>
-<span class="sourceLineNo">928</span>        throw new InterruptedIOException("Giving up trying to location region in " +<a name="line.928"></a>
-<span class="sourceLineNo">929</span>          "meta: thread is interrupted.");<a name="line.929"></a>
-<span class="sourceLineNo">930</span>      }<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>   * Put a newly discovered HRegionLocation into the cache.<a name="line.935"></a>
-<span class="sourceLineNo">936</span>   * @param tableName The table name.<a name="line.936"></a>
-<span class="sourceLineNo">937</span>   * @param location the new location<a name="line.937"></a>
-<span class="sourceLineNo">938</span>   */<a name="line.938"></a>
-<span class="sourceLineNo">939</span>  @Override<a name="line.939"></a>
-<span class="sourceLineNo">940</span>  public void cacheLocation(final TableName tableName, final RegionLocations location) {<a name="line.940"></a>
-<span class="sourceLineNo">941</span>    metaCache.cacheLocation(tableName, location);<a name="line.941"></a>
-<span class="sourceLineNo">942</span>  }<a name="line.942"></a>
-<span class="sourceLineNo">943</span><a name="line.943"></a>
-<span class="sourceLineNo">944</span>  /**<a name="line.944"></a>
-<span class="sourceLineNo">945</span>   * Search the cache for a location that fits our table and row key.<a name="line.945"></a>
-<span class="sourceLineNo">946</span>   * Return null if no suitable region is located.<a name="line.946"></a>
-<span class="sourceLineNo">947</span>   * @return Null or region location found in cache.<a name="line.947"></a>
-<span class="sourceLineNo">948</span>   */<a name="line.948"></a>
-<span class="sourceLineNo">949</span>  RegionLocations getCachedLocation(final TableName tableName,<a name="line.949"></a>
-<span class="sourceLineNo">950</span>      final byte [] row) {<a name="line.950"></a>
-<span class="sourceLineNo">951</span>    return metaCache.getCachedLocation(tableName, row);<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>  public void clearRegionCache(final TableName tableName, byte[] row) {<a name="line.954"></a>
-<span class="sourceLineNo">955</span>    metaCache.clearCache(tableName, row);<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>  /*<a name="line.958"></a>
-<span class="sourceLineNo">959</span>   * Delete all cached entries of a table that maps to a specific location.<a name="line.959"></a>
-<span class="sourceLineNo">960</span>   */<a name="line.960"></a>
-<span class="sourceLineNo">961</span>  @Override<a name="line.961"></a>
-<span class="sourceLineNo">962</span>  public void clearCaches(final ServerName serverName) {<a name="line.962"></a>
-<span class="sourceLineNo">963</span>    metaCache.clearCache(serverName);<a name="line.963"></a>
-<span class="sourceLineNo">964</span>  }<a name="line.964"></a>
-<span class="sourceLineNo">965</span><a name="line.965"></a>
-<span class="sourceLineNo">966</span>  @Override<a name="line.966"></a>
-<span class="sourceLineNo">967</span>  public void clearRegionCache() {<a name="line.967"></a>
-<span class="sourceLineNo">968</span>    metaCache.clearCache();<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>  @Override<a name="line.971"></a>
-<span class="sourceLineNo">972</span>  public void clearRegionCache(final TableName tableName) {<a name="line.972"></a>
-<span class="sourceLineNo">973</span>    metaCache.clearCache(tableName);<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>   * Put a newly discovered HRegionLocation into the cache.<a name="line.977"></a>
-<span class="sourceLineNo">978</span>   * @param tableName The table name.<a name="line.978"></a>
-<span class="sourceLineNo">979</span>   * @param source the source of the new location, if it's not coming from meta<a name="line.979"></a>
-<span class="sourceLineNo">980</span>   * @param location the new location<a name="line.980"></a>
-<span class="sourceLineNo">981</span>   */<a name="line.981"></a>
-<span class="sourceLineNo">982</span>  private void cacheLocation(final TableName tableName, final ServerName source,<a name="line.982"></a>
-<span class="sourceLineNo">983</span>      final HRegionLocation location) {<a name="line.983"></a>
-<span class="sourceLineNo">984</span>    metaCache.cacheLocation(tableName, source, location);<a name="line.984"></a>
-<span class="sourceLineNo">985</span>  }<a name="line.985"></a>
-<span class="sourceLineNo">986</span><a name="line.986"></a>
-<span class="sourceLineNo">987</span>  // Map keyed by service name + regionserver to service stub implementation<a name="line.987"></a>
-<span class="sourceLineNo">988</span>  private final ConcurrentMap&lt;String, Object&gt; stubs = new ConcurrentHashMap&lt;&gt;();<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>   * State of the MasterService connection/setup.<a name="line.991"></a>
-<span class="sourceLineNo">992</span>   */<a name="line.992"></a>
-<span class="sourceLineNo">993</span>  static class MasterServiceState {<a name="line.993"></a>
-<span class="sourceLineNo">994</span>    Connection connection;<a name="line.994"></a>
-<span class="sourceLineNo">995</span><a name="line.995"></a>
-<span class="sourceLineNo">996</span>    MasterProtos.MasterService.BlockingInterface stub;<a name="line.996"></a>
-<span class="sourceLineNo">997</span>    int userCount;<a name="line.997"></a>
-<span class="sourceLineNo">998</span><a name="line.998"></a>
-<span class="sourceLineNo">999</span>    MasterServiceState(final Connection connection) {<a name="line.999"></a>
-<span class="sourceLineNo">1000</span>      super();<a name="line.1000"></a>
-<span class="sourceLineNo">1001</span>      this.connection = connection;<a name="line.1001"></a>
-<span class="sourceLineNo">1002</span>    }<a name="line.1002"></a>
-<span class="sourceLineNo">1003</span><a name="line.1003"></a>
-<span class="sourceLineNo">1004</span>    @Override<a name="line.1004"></a>
-<span class="sourceLineNo">1005</span>    public String toString() {<a name="line.1005"></a>
-<span class="sourceLineNo">1006</span>      return "MasterService";<a name="line.1006"></a>
-<span class="sourceLineNo">1007</span>    }<a name="line.1007"></a>
-<span class="sourceLineNo">1008</span><a name="line.1008"></a>
-<span class="sourceLineNo">1009</span>    Object getStub() {<a name="line.1009"></a>
-<span class="sourceLineNo">1010</span>      return this.stub;<a name="line.1010"></a>
-<span class="sourceLineNo">1011</span>    }<a name="line.1011"></a>
-<span class="sourceLineNo">1012</span><a name="line.1012"></a>
-<span class="sourceLineNo">1013</span>    void clearStub() {<a name="line.1013"></a>
-<span class="sourceLineNo">1014</span>      this.stub = null;<a name="line.1014"></a>
-<span class="sourceLineNo">1015</span>    }<a name="line.1015"></a>
-<span class="sourceLineNo">1016</span><a name="line.1016"></a>
-<span class="sourceLineNo">1017</span>    boolean isMasterRunning() throws IOException {<a name="line.1017"></a>
-<span class="sourceLineNo">1018</span>      MasterProtos.IsMasterRunningResponse response = null;<a name="line.1018"></a>
-<span class="sourceLineNo">1019</span>      try {<a name="line.1019"></a>
-<span class="sourceLineNo">1020</span>        response = this.stub.isMasterRunning(null, RequestConverter.buildIsMasterRunningRequest());<a name="line.1020"></a>
-<span class="sourceLineNo">1021</span>      } catch (Exception e) {<a name="line.1021"></a>
-<span class="sourceLineNo">1022</span>        throw ProtobufUtil.handleRemoteException(e);<a name="line.1022"></a>
-<span class="sourceLineNo">1023</span>      }<a name="line.1023"></a>
-<span class="sourceLineNo">1024</span>      return response != null? response.getIsMasterRunning(): false;<a name="line.1024"></a>
-<span class="sourceLineNo">1025</span>    }<a name="line.1025"></a>
-<span class="sourceLineNo">1026</span>  }<a name="line.1026"></a>
-<span class="sourceLineNo">1027</span><a name="line.1027"></a>
-<span class="sourceLineNo">1028</span>  /**<a name="line.1028"></a>
-<span class="sourceLineNo">1029</span>   * The record of errors for servers.<a name="line.1029"></a>
-<span class="sourceLineNo">1030</span>   */<a name="line.1030"></a>
-<span class="sourceLineNo">1031</span>  static class ServerErrorTracker {<a name="line.1031"></a>
-<span class="sourceLineNo">1032</span>    // We need a concurrent map here, as we could have multiple threads updating it in parallel.<a name="line.1032"></a>
-<span class="sourceLineNo">1033</span>    private final ConcurrentMap&lt;ServerName, ServerErrors&gt; errorsByServer = new ConcurrentHashMap&lt;&gt;();<a name="line.1033"></a>
-<span class="sourceLineNo">1034</span>    private final long canRetryUntil;<a name="line.1034"></a>
-<span class="sourceLineNo">1035</span>    private final int maxTries;// max number to try<a name="line.1035"></a>
-<span class="sourceLineNo">1036</span>    private final long startTrackingTime;<a name="line.1036"></a>
-<span class="sourceLineNo">1037</span><a name="line.1037"></a>
-<span class="sourceLineNo">1038</span>    /**<a name="line.1038"></a>
-<span class="sourceLineNo">1039</span>     * Constructor<a name="line.1039"></a>
-<span class="sourceLineNo">1040</span>     * @param timeout how long to wait before timeout, in unit of millisecond<a name="line.1040"></a>
-<span class="sourceLineNo">1041</span>     * @param maxTries how many times to try<a name="line.1041"></a>
-<span class="sourceLineNo">1042</span>     */<a name="line.1042"></a>
-<span class="sourceLineNo">1043</span>    public ServerErrorTracker(long timeout, int maxTries) {<a name="line.1043"></a>
-<span class="sourceLineNo">1044</span>      this.maxTries = maxTries;<a name="line.1044"></a>
-<span class="sourceLineNo">1045</span>      this.canRetryUntil = EnvironmentEdgeManager.currentTime() + timeout;<a name="line.1045"></a>
-<span class="sourceLineNo">1046</span>      this.startTrackingTime = new Date().getTime();<a name="line.1046"></a>
-<span class="sourceLineNo">1047</span>    }<a name="line.1047"></a>
-<span class="sourceLineNo">1048</span><a name="line.1048"></a>
-<span class="sourceLineNo">1049</span>    /**<a name="line.1049"></a>
-<span class="sourceLineNo">1050</span>     * We stop to retry when we have exhausted BOTH the number of tries and the time allocated.<a name="line.1050"></a>
-<span class="sourceLineNo">1051</span>     * @param numAttempt how many times we have tried by now<a name="line.1051"></a>
-<span class="sourceLineNo">1052</span>     */<a name="line.1052"></a>
-<span class="sourceLineNo">1053</span>    boolean canTryMore(int numAttempt) {<a name="line.1053"></a>
-<span class="sourceLineNo">1054</span>      // If there is a single try we must not take into account the time.<a name="line.1054"></a>
-<span class="sourceLineNo">1055</span>      return numAttempt &lt; maxTries || (maxTries &gt; 1 &amp;&amp;<a name="line.1055"></a>
-<span class="sourceLineNo">1056</span>          EnvironmentEdgeManager.currentTime() &lt; this.canRetryUntil);<a name="line.1056"></a>
-<span class="sourceLineNo">1057</span>    }<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>     * Calculates the back-off time for a retrying request to a particular server.<a name="line.1060"></a>
-<span class="sourceLineNo">1061</span>     *<a name="line.1061"></a>
-<span class="sourceLineNo">1062</span>     * @param server    The server in question.<a name="line.1062"></a>
-<span class="sourceLineNo">1063</span>     * @param basePause The default hci pause.<a name="line.1063"></a>
-<span class="sourceLineNo">1064</span>     * @return The time to wait before sending next request.<a name="line.1064"></a>
-<span class="sourceLineNo">1065</span>     */<a name="line.1065"></a>
-<span class="sourceLineNo">1066</span>    long calculateBackoffTime(ServerName server, long basePause) {<a name="line.1066"></a>
-<span class="sourceLineNo">1067</span>      long result;<a name="line.1067"></a>
-<span class="sourceLineNo">1068</span>      ServerErrors errorStats = errorsByServer.get(server);<a name="line.1068"></a>
-<span class="sourceLineNo">1069</span>      if (errorStats != null) {<a name="line.1069"></a>
-<span class="sourceLineNo">1070</span>        result = ConnectionUtils.getPauseTime(basePause, Math.max(0, errorStats.getCount() - 1));<a name="line.1070"></a>
-<span class="sourceLineNo">1071</span>      } else {<a name="line.1071"></a>
-<span class="sourceLineNo">1072</span>        result = 0; // yes, if the server is not in our list we don't wait before retrying.<a name="line.1072"></a>
-<span class="sourceLineNo">1073</span>      }<a name="line.1073"></a>
-<span class="sourceLineNo">1074</span>      return result;<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>     * Reports that there was an error on the server to do whatever bean-counting necessary.<a name="line.1078"></a>
-<span class="sourceLineNo">1079</span>     * @param server The server in question.<a name="line.1079"></a>
-<span class="sourceLineNo">1080</span>     */<a name="line.1080"></a>
-<span class="sourceLineNo">1081</span>    void reportServerError(ServerName server) {<a name="line.1081"></a>
-<span class="sourceLineNo">1082</span>      computeIfAbsent(errorsByServer, server, ServerErrors::new).addError();<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>    long getStartTrackingTime() {<a name="line.1085"></a>
-<span class="sourceLineNo">1086</span>      return startTrackingTime;<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>     * The record of errors for a server.<a name="line.1090"></a>
-<span class="sourceLineNo">1091</span>     */<a name="line.1091"></a>
-<span class="sourceLineNo">1092</span>    private static class ServerErrors {<a name="line.1092"></a>
-<span class="sourceLineNo">1093</span>      private final AtomicInteger retries = new AtomicInteger(0);<a name="line.1093"></a>
-<span class="sourceLineNo">1094</span><a name="line.1094"></a>
-<span class="sourceLineNo">1095</span>      public int getCount() {<a name="line.1095"></a>
-<span class="sourceLineNo">1096</span>        return retries.get();<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>      public void addError() {<a name="line.1099"></a>
-<span class="sourceLineNo">1100</span>        retries.incrementAndGet();<a name="line.1100"></a>
-<span class="sourceLineNo">1101</span>      }<a name="line.1101"></a>
-<span class="sourceLineNo">1102</span>    }<a name="line.1102"></a>
-<span class="sourceLineNo">1103</span>  }<a name="line.1103"></a>
-<span class="sourceLineNo">1104</span><a name="line.1104"></a>
-<span class="sourceLineNo">1105</span>  /**<a name="line.1105"></a>
-<span class="sourceLineNo">1106</span>   * Class to make a MasterServiceStubMaker stub.<a name="line.1106"></a>
-<span class="sourceLineNo">1107</span>   */<a name="line.1107"></a>
-<span class="sourceLineNo">1108</span>  private final class MasterServiceStubMaker {<a name="line.1108"></a>
-<span class="sourceLineNo">1109</span><a name="line.1109"></a>
-<span class="sourceLineNo">1110</span>    private void isMasterRunning(MasterProtos.MasterService.BlockingInterface stub)<a name="line.1110"></a>
-<span class="sourceLineNo">1111</span>        throws IOException {<a name="line.1111"></a>
-<span class="sourceLineNo">1112</span>      try {<a name="line.1112"></a>
-<span class="sourceLineNo">1113</span>        stub.isMasterRunning(null, RequestConverter.buildIsMasterRunningRequest());<a name="line.1113"></a>
-<span class="sourceLineNo">1114</span>      } catch (ServiceException e) {<a name="line.1114"></a>
-<span class="sourceLineNo">1115</span>        throw ProtobufUtil.handleRemoteException(e);<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><a name="line.1118"></a>
-<span class="sourceLineNo">1119</span>    /**<a name="line.1119"></a>
-<span class="sourceLineNo">1120</span>     * Create a stub. Try once only. It is not typed because there is no common type to protobuf<a name="line.1120"></a>
-<span class="sourceLineNo">1121</span>     * services nor their interfaces. Let the caller do appropriate casting.<a name="line.1121"></a>
-<span class="sourceLineNo">1122</span>     * @return A stub for master services.<a name="line.1122"></a>
-<span class="sourceLineNo">1123</span>     */<a name="line.1123"></a>
-<span class="sourceLineNo">1124</span>    private MasterProtos.MasterService.BlockingInterface makeStubNoRetries()<a name="line.1124"></a>
-<span class="sourceLineNo">1125</span>        throws IOException, KeeperException {<a name="line.1125"></a>
-<span class="sourceLineNo">1126</span>      ZooKeeperKeepAliveConnection zkw;<a name="line.1126"></a>
-<span class="sourceLineNo">1127</span>      try {<a name="line.1127"></a>
-<span class="sourceLineNo">1128</span>        zkw = getKeepAliveZooKeeperWatcher();<a name="line.1128"></a>
-<span class="sourceLineNo">1129</span>      } catch (IOException e) {<a name="line.1129"></a>
-<span class="sourceLineNo">1130</span>        ExceptionUtil.rethrowIfInterrupt(e);<a name="line.1130"></a>
-<span class="sourceLineNo">1131</span>        throw new ZooKeeperConnectionException("Can't connect to ZooKeeper", e);<a name="line.1131"></a>
-<span class="sourceLineNo">1132</span>      }<a name="line.1132"></a>
-<span class="sourceLineNo">1133</span>      try {<a name="line.1133"></a>
-<span class="sourceLineNo">1134</span>        checkIfBaseNodeAvailable(zkw);<a name="line.1134"></a>
-<span class="sourceLineNo">1135</span>        ServerName sn = MasterAddressTracker.getMasterAddress(zkw);<a name="line.1135"></a>
-<span class="sourceLineNo">1136</span>        if (sn == null) {<a name="line.1136"></a>
-<span class="sourceLineNo">1137</span>          String msg = "ZooKeeper available but no active master location found";<a name="line.1137"></a>
-<span class="sourceLineNo">1138</span>          LOG.info(msg);<a name="line.1138"></a>
-<span class="sourceLineNo">1139</span>          throw new MasterNotRunningException(msg);<a name="line.1139"></a>
-<span class="sourceLineNo">1140</span>        }<a name="line.1140"></a>
-<span class="sourceLineNo">1141</span>        if (isDeadServer(sn)) {<a name="line.1141"></a>
-<span class="sourceLineNo">1142</span>          throw new MasterNotRunningException(sn + " is dead.");<a name="line.1142"></a>
-<span class="sourceLineNo">1143</span>        }<a name="line.1143"></a>
-<span class="sourceLineNo">1144</span>        // Use the security info interface name as our stub key<a name="line.1144"></a>
-<span class="sourceLineNo">1145</span>        String key = getStubKey(MasterProtos.MasterService.getDescriptor().getName(), sn,<a name="line.1145"></a>
-<span class="sourceLineNo">1146</span>          hostnamesCanChange);<a name="line.1146"></a>
-<span class="sourceLineNo">1147</span>        MasterProtos.MasterService.BlockingInterface stub =<a name="line.1147"></a>
-<span class="sourceLineNo">1148</span>            (MasterProtos.MasterService.BlockingInterface) computeIfAbsentEx(stubs, key, () -&gt; {<a name="line.1148"></a>
-<span class="sourceLineNo">1149</span>              BlockingRpcChannel channel = rpcClient.createBlockingRpcChannel(sn, user, rpcTimeout);<a name="line.1149"></a>
-<span class="sourceLineNo">1150</span>              return MasterProtos.MasterService.newBlockingStub(channel);<a name="line.1150"></a>
-<span class="sourceLineNo">1151</span>            });<a name="line.1151"></a>
-<span class="sourceLineNo">1152</span>        isMasterRunning(stub);<a name="line.1152"></a>
-<span class="sourceLineNo">1153</span>        return stub;<a name="line.1153"></a>
-<span class="sourceLineNo">1154</span>      } finally {<a name="line.1154"></a>
-<span class="sourceLineNo">1155</span>        zkw.close();<a name="line.1155"></a>
-<span class="sourceLineNo">1156</span>      }<a name="line.1156"></a>
-<span class="sourceLineNo">1157</span>    }<a name="line.1157"></a>
-<span class="sourceLineNo">1158</span><a name="line.1158"></a>
-<span class="sourceLineNo">1159</span>    /**<a name="line.1159"></a>
-<span class="sourceLineNo">1160</span>     * Create a stub against the master. Retry if necessary.<a name="line.1160"></a>
-<span class="sourceLineNo">1161</span>     * @return A stub to do &lt;code&gt;intf&lt;/code&gt; against the master<a name="line.1161"></a>
-<span class="sourceLineNo">1162</span>     * @throws org.apache.hadoop.hbase.MasterNotRunningException if master is not running<a name="line.1162"></a>
-<span class="sourceLineNo">1163</span>     */<a name="line.1163"></a>
-<span class="sourceLineNo">1164</span>    MasterProtos.MasterService.BlockingInterface makeStub() throws IOException {<a name="line.1164"></a>
-<span class="sourceLineNo">1165</span>      // The lock must be at the beginning to prevent multiple master creations<a name="line.1165"></a>
-<span class="sourceLineNo">1166</span>      // (and leaks) in a multithread context<a name="line.1166"></a>
-<span class="sourceLineNo">1167</span>      synchronized (masterAndZKLock) {<a name="line.1167"></a>
-<span class="sourceLineNo">1168</span>        Exception exceptionCaught = null;<a name="line.1168"></a>
-<span class="sourceLineNo">1169</span>        if (!closed) {<a name="line.1169"></a>
-<span class="sourceLineNo">1170</span>          try {<a name="line.1170"></a>
-<span class="sourceLineNo">1171</span>            return makeStubNoRetries();<a name="line.1171"></a>
-<span class="sourceLineNo">1172</span>          } catch (IOException e) {<a name="line.1172"></a>
-<span class="sourceLineNo">1173</span>            exceptionCaught = e;<a name="line.1173"></a>
-<span class="sourceLineNo">1174</span>          } catch (KeeperException e) {<a name="line.1174"></a>
-<span class="sourceLineNo">1175</span>            exceptionCaught = e;<a name="line.1175"></a>
-<span class="sourceLineNo">1176</span>          }<a name="line.1176"></a>
-<span class="sourceLineNo">1177</span>          throw new MasterNotRunningException(exceptionCaught);<a name="line.1177"></a>
-<span class="sourceLineNo">1178</span>        } else {<a name="line.1178"></a>
-<span class="sourceLineNo">1179</span>          throw new DoNotRetryIOException("Connection was closed while trying to get master");<a name="line.1179"></a>
-<span class="sourceLineNo">1180</span>        }<a name="line.1180"></a>
-<span class="sourceLineNo">1181</span>      }<a name="line.1181"></a>
-<span class="sourceLineNo">1182</span>    }<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>  @Override<a name="line.1185"></a>
-<span class="sourceLineNo">1186</span>  public AdminProtos.AdminService.BlockingInterface getAdmin(ServerName serverName)<a name="line.1186"></a>
-<span class="sourceLineNo">1187</span>      throws IOException {<a name="line.1187"></a>
-<span class="sourceLineNo">1188</span>    if (isDeadServer(serverName)) {<a name="line.1188"></a>
-<span class="sourceLineNo">1189</span>      throw new RegionServerStoppedException(serverName + " is dead.");<a name="line.1189"></a>
-<span class="sourceLineNo">1190</span>    }<a name="line.1190"></a>
-<span class="sourceLineNo">1191</span>    String key = getStubKey(AdminProtos.AdminService.BlockingInterface.class.getName(), serverName,<a name="line.1191"></a>
-<span class="sourceLineNo">1192</span>      this.hostnamesCanChange);<a name="line.1192"></a>
-<span class="sourceLineNo">1193</span>    return (AdminProtos.AdminService.BlockingInterface) computeIfAbsentEx(stubs, key, () -&gt; {<a name="line.1193"></a>
-<span class="sourceLineNo">1194</span>      BlockingRpcChannel channel =<a name="line.1194"></a>
-<span class="sourceLineNo">1195</span>          this.rpcClient.createBlockingRpcChannel(serverName, user, rpcTimeout);<a name="line.1195"></a>
-<span class="sourceLineNo">1196</span>      return AdminProtos.AdminService.newBlockingStub(channel);<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><a name="line.1199"></a>
-<span class="sourceLineNo">1200</span>  @Override<a name="line.1200"></a>
-<span class="sourceLineNo">1201</span>  public BlockingInterface getClient(ServerName serverName) throws IOException {<a name="line.1201"></a>
-<span class="sourceLineNo">1202</span>    if (isDeadServer(serverName)) {<a name="line.1202"></a>
-<span class="sourceLineNo">1203</span>      throw new RegionServerStoppedException(serverName + " is dead.");<a name="line.1203"></a>
-<span class="sourceLineNo">1204</span>    }<a name="line.1204"></a>
-<span class="sourceLineNo">1205</span>    String key = getStubKey(ClientProtos.ClientService.BlockingInterface.class.getName(),<a name="line.1205"></a>
-<span class="sourceLineNo">1206</span>      serverName, this.hostnamesCanChange);<a name="line.1206"></a>
-<span class="sourceLineNo">1207</span>    return (ClientProtos.ClientService.BlockingInterface) computeIfAbsentEx(stubs, key, () -&gt; {<a name="line.1207"></a>
-<span class="sourceLineNo">1208</span>      BlockingRpcChannel channel =<a name="line.1208"></a>
-<span class="sourceLineNo">1209</span>          this.rpcClient.createBlockingRpcChannel(serverName, user, rpcTimeout);<a name="line.1209"></a>
-<span class="sourceLineNo">1210</span>      return ClientProtos.ClientService.newBlockingStub(channel);<a name="line.1210"></a>
-<span class="sourceLineNo">1211</span>    });<a name="line.1211"></a>
-<span class="sourceLineNo">1212</span>  }<a name="line.1212"></a>
-<span class="sourceLineNo">1213</span><a name="line.1213"></a>
-<span class="sourceLineNo">1214</span>  private ZooKeeperKeepAliveConnection keepAliveZookeeper;<a name="line.1214"></a>
-<span class="sourceLineNo">1215</span>  private AtomicInteger keepAliveZookeeperUserCount = new AtomicInteger(0);<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>   * Retrieve a shared ZooKeeperWatcher. You must close it it once you've have finished with it.<a name="line.1218"></a>
-<span class="sourceLineNo">1219</span>   * @return The shared instance. Never returns null.<a name="line.1219"></a>
-<span class="sourceLineNo">1220</span>   */<a name="line.1220"></a>
-<span class="sourceLineNo">1221</span>  ZooKeeperKeepAliveConnection getKeepAliveZooKeeperWatcher()<a name="line.1221"></a>
-<span class="sourceLineNo">1222</span>    throws IOException {<a name="line.1222"></a>
-<span class="sourceLineNo">1223</span>    synchronized (masterAndZKLock) {<a name="line.1223"></a>
-<span class="sourceLineNo">1224</span>      if (keepAliveZookeeper == null) {<a name="line.1224"></a>
-<span class="sourceLineNo">1225</span>        if (this.closed) {<a name="line.1225"></a>
-<span class="sourceLineNo">1226</span>          throw new IOException(toString() + " closed");<a name="line.1226"></a>
-<span class="sourceLineNo">1227</span>        }<a name="line.1227"></a>
-<span class="sourceLineNo">1228</span>        // We don't check that our link to ZooKeeper is still valid<a name="line.1228"></a>
-<span class="sourceLineNo">1229</span>        // But there is a retry mechanism in the ZooKeeperWatcher itself<a name="line.1229"></a>
-<span class="sourceLineNo">1230</span>        keepAliveZookeeper = new ZooKeeperKeepAliveConnection(conf, this.toString(), this);<a name="line.1230"></a>
-<span class="sourceLineNo">1231</span>      }<a name="line.1231"></a>
-<span class="sourceLineNo">1232</span>      keepAliveZookeeperUserCount.addAndGet(1);<a name="line.1232"></a>
-<span class="sourceLineNo">1233</span>      return keepAliveZookeeper;<a name="line.1233"></a>
-<span class="sourceLineNo">1234</span>    }<a name="line.1234"></a>
-<span class="sourceLineNo">1235</span>  }<a name="line.1235"></a>
-<span class="sourceLineNo">1236</span><a name="line.1236"></a>
-<span class="sourceLineNo">1237</span>  void releaseZooKeeperWatcher(final ZooKeeperWatcher zkw) {<a name="line.1237"></a>
-<span class="sourceLineNo">1238</span>    if (zkw == null){<a name="line.1238"></a>
-<span class="sourceLineNo">1239</span>      return;<a name="line.1239"></a>
-<span class="sourceLineNo">1240</span>    }<a name="line.1240"></a>
-<span class="sourceLineNo">1241</span>  }<a name="line.1241"></a>
-<span class="sourceLineNo">1242</span><a name="line.1242"></a>
-<span class="sourceLineNo">1243</span>  private void closeZooKeeperWatcher() {<a name="line.1243"></a>
-<span class="sourceLineNo">1244</span>    synchronized (masterAndZKLock) {<a name="line.1244"></a>
-<span class="sourceLineNo">1245</span>      if (keepAliveZookeeper != null) {<a name="line.1245"></a>
-<span class="sourceLineNo">1246</span>        LOG.info("Closing zookeeper sessionid=0x" +<a name="line.1246"></a>
-<span class="sourceLineNo">1247</span>          Long.toHexString(<a name="line.1247"></a>
-<span class="sourceLineNo">1248</span>            keepAliveZookeeper.getRecoverableZooKeeper().getSessionId()));<a name="line.1248"></a>
-<span class="sourceLineNo">1249</span>        keepAliveZookeeper.internalClose();<a name="line.1249"></a>
-<span class="sourceLineNo">1250</span>        keepAliveZookeeper = null;<a name="line.1250"></a>
-<span class="sourceLineNo">1251</span>      }<a name="line.1251"></a>
-<span class="sourceLineNo">1252</span>      keepAliveZookeeperUserCount.set(0);<a name="line.1252"></a>
-<span class="sourceLineNo">1253</span>    }<a name="line.1253"></a>
-<span class="sourceLineNo">1254</span>  }<a name="line.1254"></a>
-<span class="sourceLineNo">1255</span><a name="line.1255"></a>
-<span class="sourceLineNo">1256</span>  final MasterServiceState masterServiceState = new MasterServiceState(this);<a name="line.1256"></a>
-<span class="sourceLineNo">1257</span><a name="line.1257"></a>
-<span class="sourceLineNo">1258</span>  @Override<a name="line.1258"></a>
-<span class="sourceLineNo">1259</span>  public MasterProtos.MasterService.BlockingInterface getMaster() throws MasterNotRunningException {<a name="line.1259"></a>
-<span class="sourceLineNo">1260</span>    return getKeepAliveMasterService();<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>  private void resetMasterServiceState(final MasterServiceState mss) {<a name="line.1263"></a>
-<span class="sourceLineNo">1264</span>    mss.userCount++;<a name="line.1264"></a>
-<span class="sourceLineNo">1265</span>  }<a name="line.1265"></a>
-<span class="sourceLineNo">1266</span><a name="line.1266"></a>
-<span class="sourceLineNo">1267</span>  @Override<a name="line.1267"></a>
-<span class="sourceLineNo">1268</span>  public MasterKeepAliveConnection getKeepAliveMasterService()<a name="line.1268"></a>
-<span class="sourceLineNo">1269</span>  throws MasterNotRunningException {<a name="line.1269"></a>
-<span class="sourceLineNo">1270</span>    synchronized (masterAndZKLock) {<a name="line.1270"></a>
-<span class="sourceLineNo">1271</span>      if (!isKeepAliveMasterConnectedAndRunning(this.masterServiceState)) {<a name="line.1271"></a>
-<span class="sourceLineNo">1272</span>        MasterServiceStubMaker stubMaker = new MasterServiceStubMaker();<a name="line.1272"></a>
-<span class="sourceLineNo">1273</span>        try {<a name="line.1273"></a>
-<span class="sourceLineNo">1274</span>          this.masterServiceState.stub = stubMaker.makeStub();<a name="line.1274"></a>
-<span class="sourceLineNo">1275</span>        } catch (MasterNotRunningException ex) {<a name="line.1275"></a>
-<span class="sourceLineNo">1276</span>          throw ex;<a name="line.1276"></a>
-<span class="sourceLineNo">1277</span>        } catch (IOException e) {<a name="line.1277"></a>
-<span class="sourceLineNo">1278</span>          // rethrow as MasterNotRunningException so that we can keep the method sig<a name="line.1278"></a>
-<span class="sourceLineNo">1279</span>          throw new MasterNotRunningException(e);<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>      resetMasterServiceState(this.masterServiceState);<a name="line.1282"></a>
-<span class="sourceLineNo">1283</span>    }<a name="line.1283"></a>
-<span class="sourceLineNo">1284</span>    // Ugly delegation just so we can add in a Close method.<a name="line.1284"></a>
-<span class="sourceLineNo">1285</span>    final MasterProtos.MasterService.BlockingInterface stub = this.masterServiceState.stub;<a name="line.1285"></a>
-<span class="sourceLineNo">1286</span>    return new MasterKeepAliveConnection() {<a name="line.1286"></a>
-<span class="sourceLineNo">1287</span>      MasterServiceState mss = masterServiceState;<a name="line.1287"></a>
-<span class="sourceLineNo">1288</span><a name="line.1288"></a>
-<span class="sourceLineNo">1289</span>      @Override<a name="line.1289"></a>
-<span class="sourceLineNo">1290</span>      public MasterProtos.AbortProcedureResponse abortProcedure(<a name="line.1290"></a>
-<span class="sourceLineNo">1291</span>          RpcController controller,<a name="line.1291"></a>
-<span class="sourceLineNo">1292</span>          MasterProtos.AbortProcedureRequest request) throws ServiceException {<a name="line.1292"></a>
-<span class="sourceLineNo">1293</span>        return stub.abortProcedure(controller, request);<a name="line.1293"></a>
-<span class="sourceLineNo">1294</span>      }<a name="line.1294"></a>
-<span class="sourceLineNo">1295</span><a name="line.1295"></a>
-<span class="sourceLineNo">1296</span>      @Override<a name="line.1296"></a>
-<span class="sourceLineNo">1297</span>      public MasterProtos.GetProceduresResponse getProcedures(<a name="line.1297"></a>
-<span class="sourceLineNo">1298</span>          RpcController controller,<a name="line.1298"></a>
-<span class="sourceLineNo">1299</span>          MasterProtos.GetProceduresRequest request) throws ServiceException {<a name="line.1299"></a>
-<span class="sourceLineNo">1300</span>        return stub.getProcedures(controller, request);<a name="line.1300"></a>
-<span class="sourceLineNo">1301</span>      }<a name="line.1301"></a>
-<span class="sourceLineNo">1302</span><a name="line.1302"></a>
-<span class="sourceLineNo">1303</span>      @Override<a name="line.1303"></a>
-<span class="sourceLineNo">1304</span>      public MasterProtos.GetLocksResponse getLocks(<a name="line.1304"></a>
-<span class="sourceLineNo">1305</span>          RpcController controller,<a name="line.1305"></a>
-<span class="sourceLineNo">1306</span>          MasterProtos.GetLocksRequest request) throws ServiceException {<a name="line.1306"></a>
-<span class="sourceLineNo">1307</span>        return stub.getLocks(controller, request);<a name="line.1307"></a>
-<span class="sourceLineNo">1308</span>      }<a name="line.1308"></a>
-<span class="sourceLineNo">1309</span><a name="line.1309"></a>
-<span class="sourceLineNo">1310</span>      @Override<a name="line.1310"></a>
-<span class="sourceLineNo">1311</span>      public MasterProtos.AddColumnResponse addColumn(<a name="line.1311"></a>
-<span class="sourceLineNo">1312</span>          RpcController controller,<a name="line.1312"></a>
-<span class="sourceLineNo">1313</span>          MasterProtos.AddColumnRequest request) throws ServiceException {<a name="line.1313"></a>
-<span class="sourceLineNo">1314</span>        return stub.addColumn(controller, request);<a name="line.1314"></a>
-<span class="sourceLineNo">1315</span>      }<a name="line.1315"></a>
-<span class="sourceLineNo">1316</span><a name="line.1316"></a>
-<span class="sourceLineNo">1317</span>      @Override<a name="line.1317"></a>
-<span class="sourceLineNo">1318</span>      public MasterProtos.DeleteColumnResponse deleteColumn(RpcController controller,<a name="line.1318"></a>
-<span class="sourceLineNo">1319</span>          MasterProtos.DeleteColumnRequest request)<a name="line.1319"></a>
-<span class="sourceLineNo">1320</span>      throws ServiceException {<a name="line.1320"></a>
-<span class="sourceLineNo">1321</span>        return stub.deleteColumn(controller, request);<a name="line.1321"></a>
-<span class="sourceLineNo">1322</span>      }<a name="line.1322"></a>
-<span class="sourceLineNo">1323</span><a name="line.1323"></a>
-<span class="sourceLineNo">1324</span>      @Override<a name="line.1324"></a>
-<span class="sourceLineNo">1325</span>      public MasterProtos.ModifyColumnResponse modifyColumn(RpcController controller,<a name="line.1325"></a>
-<span class="sourceLineNo">1326</span>          MasterProtos.ModifyColumnRequest request)<a name="line.1326"></a>
-<span class="sourceLineNo">1327</span>      throws ServiceException {<a name="line.1327"></a>
-<span class="sourceLineNo">1328</span>        return stub.modifyColumn(controller, request);<a name="line.1328"></a>
-<span class="sourceLineNo">1329</span>      }<a name="line.1329"></a>
-<span class="sourceLineNo">1330</span><a name="line.1330"></a>
-<span class="sourceLineNo">1331</span>      @Override<a name="line.1331"></a>
-<span class="sourceLineNo">1332</span>      public MasterProtos.MoveRegionResponse moveRegion(RpcController controller,<a name="line.1332"></a>
-<span class="sourceLineNo">1333</span>          MasterProtos.MoveRegionRequest request) throws ServiceException {<a name="line.1333"></a>
-<span class="sourceLineNo">1334</span>        return stub.moveRegion(controller, request);<a name="line.1334"></a>
-<span class="sourceLineNo">1335</span>      }<a name="line.1335"></a>
-<span class="sourceLineNo">1336</span><a name="line.1336"></a>
-<span class="sourceLineNo">1337</span>      @Override<a name="line.1337"></a>
-<span class="sourceLineNo">1338</span>      public MasterProtos.MergeTableRegionsResponse mergeTableRegions(<a name="line.1338"></a>
-<span class="sourceLineNo">1339</span>          RpcController controller, MasterProtos.MergeTableRegionsRequest request)<a name="line.1339"></a>
-<span class="sourceLineNo">1340</span>          throws ServiceException {<a name="line.1340"></a>
-<span class="sourceLineNo">1341</span>        return stub.mergeTableRegions(controller, request);<a name="line.1341"></a>
-<span class="sourceLineNo">1342</span>      }<a name="line.1342"></a>
-<span class="sourceLineNo">1343</span><a name="line.1343"></a>
-<span class="sourceLineNo">1344</span>      @Override<a name="line.1344"></a>
-<span class="sourceLineNo">1345</span>      public MasterProtos.AssignRegionResponse assignRegion(RpcController controller,<a name="line.1345"></a>
-<span class="sourceLineNo">1346</span>          MasterProtos.AssignRegionRequest request) throws ServiceException {<a name="line.1346"></a>
-<span class="sourceLineNo">1347</span>        return stub.assignRegion(controller, request);<a name="line.1347"></a>
-<span class="sourceLineNo">1348</span>      }<a name="line.1348"></a>
-<span class="sourceLineNo">1349</span><a name="line.1349"></a>
-<span class="sourceLineNo">1350</span>      @Override<a name="line.1350"></a>
-<span class="sourceLineNo">1351</span>      public MasterProtos.UnassignRegionResponse unassignRegion(RpcController controller,<a name="line.1351"></a>
-<span class="sourceLineNo">1352</span>          MasterProtos.UnassignRegionRequest request) throws ServiceException {<a name="line.1352"></a>
-<span class="sourceLineNo">1353</span>        return stub.unassignRegion(controller, request);<a name="line.1353"></a>
-<span class="sourceLineNo">1354</span>      }<a name="line.1354"></a>
-<span class="sourceLineNo">1355</span><a name="line.1355"></a>
-<span class="sourceLineNo">1356</span>      @Override<a name="line.1356"></a>
-<span class="sourceLineNo">1357</span>      public MasterProtos.OfflineRegionResponse offlineRegion(RpcController controller,<a name="line.1357"></a>
-<span class="sourceLineNo">1358</span>          MasterProtos.OfflineRegionRequest request) throws ServiceException {<a name="line.1358"></a>
-<span class="sourceLineNo">1359</span>        return stub.offlineRegion(controller, request);<a name="line.1359"></a>
-<span class="sourceLineNo">1360</span>      }<a name="line.1360"></a>
-<span class="sourceLineNo">1361</span><a name="line.1361"></a>
-<span class="sourceLineNo">1362</span>      @Override<a name="line.1362"></a>
-<span class="sourceLineNo">1363</span>      public MasterProtos.SplitTableRegionResponse splitRegion(RpcController controller,<a name="line.1363"></a>
-<span class="sourceLineNo">1364</span>          MasterProtos.SplitTableRegionRequest request) throws ServiceException {<a name="line.1364"></a>
-<span class="sourceLineNo">1365</span>        return stub.splitRegion(controller, request);<a name="line.1365"></a>
-<span class="sourceLineNo">1366</span>      }<a name="line.1366"></a>
-<span class="sourceLineNo">1367</span><a name="line.1367"></a>
-<span class="sourceLineNo">1368</span>      @Override<a name="line.1368"></a>
-<span class="sourceLineNo">1369</span>      public MasterProtos.DeleteTableResponse deleteTable(RpcController controller,<a name="line.1369"></a>
-<span class="sourceLineNo">1370</span>          MasterProtos.DeleteTableRequest request) throws ServiceException {<a name="line.1370"></a>
-<span class="sourceLineNo">1371</span>        return stub.deleteTable(controller, request);<a name="line.1371"></a>
-<span class="sourceLineNo">1372</span>      }<a name="line.1372"></a>
-<span class="sourceLineNo">1373</span><a name="line.1373"></a>
-<span class="sourceLineNo">1374</span>      @Override<a name="line.1374"></a>
-<span class="sourceLineNo">1375</span>      public MasterProtos.TruncateTableResponse truncateTable(RpcController controller,<a name="line.1375"></a>
-<span class="sourceLineNo">1376</span>          MasterProtos.TruncateTableRequest request) throws ServiceException {<a name="line.1376"></a>
-<span class="sourceLineNo">1377</span>        return stub.truncateTable(controller, request);<a name="line.1377"></a>
-<span class="sourceLineNo">1378</span>      }<a name="line.1378"></a>
-<span class="sourceLineNo">1379</span><a name="line.1379"></a>
-<span class="sourceLineNo">1380</span>      @Override<a name="line.1380"></a>
-<span class="sourceLineNo">1381</span>      public MasterProtos.EnableTableResponse enableTable(RpcController controller,<a name="line.1381"></a>
-<span class="sourceLineNo">1382</span>          MasterProtos.EnableTableRequest request) throws ServiceException {<a name="line.1382"></a>
-<span class="sourceLineNo">1383</span>        return stub.enableTable(controller, request);<a name="line.1383"></a>
-<span class="sourceLineNo">1384</span>      }<a name="line.1384"></a>
-<span class="sourceLineNo">1385</span><a name="line.1385"></a>
-<span class="sourceLineNo">1386</span>      @Override<a name="line.1386"></a>
-<span class="sourceLineNo">1387</span>      public MasterProtos.DisableTableResponse disableTable(RpcController controller,<a name="line.1387"></a>
-<span class="sourceLineNo">1388</span>          MasterProtos.DisableTableRequest request) throws ServiceException {<a name="line.1388"></a>
-<span class="sourceLineNo">1389</span>        return stub.disableTable(controller, request);<a name="line.1389"></a>
-<span class="sourceLineNo">1390</span>      }<a name="line.1390"></a>
-<span class="sourceLineNo">1391</span><a name="line.1391"></a>
-<span class="sourceLineNo">1392</span>      @Override<a name="line.1392"></a>
-<span class="sourceLineNo">1393</span>      public MasterProtos.ModifyTableResponse modifyTable(RpcController controller,<a name="line.1393"></a>
-<span class="sourceLineNo">1394</span>          MasterProtos.ModifyTableRequest request) throws ServiceException {<a name="line.1394"></a>
-<span class="sourceLineNo">1395</span>        return stub.modifyTable(controller, request);<a name="line.1395"></a>
-<span class="sourceLineNo">1396</span>      }<a name="line.1396"></a>
-<span class="sourceLineNo">1397</span><a name="line.1397"></a>
-<span class="sourceLineNo">1398</span>      @Override<a name="line.1398"></a>
-<span class="sourceLineNo">1399</span>      public MasterProtos.CreateTableResponse createTable(RpcController controller,<a name="line.1399"></a>
-<span class="sourceLineNo">1400</span>          MasterProtos.CreateTableRequest request) throws ServiceException {<a name="line.1400"></a>
-<span class="sourceLineNo">1401</span>        return stub.createTable(controller, request);<a name="line.1401"></a>
-<span class="sourceLineNo">1402</span>      }<a name="line.1402"></a>
-<span class="sourceLineNo">1403</span><a name="line.1403"></a>
-<span class="sourceLineNo">1404</span>      @Override<a name="line.1404"></a>
-<span class="sourceLineNo">1405</span>      public MasterProtos.ShutdownResponse shutdown(RpcController controller,<a name="line.1405"></a>
-<span class="sourceLineNo">1406</span>          MasterProtos.ShutdownRequest request) throws ServiceException {<a name="line.1406"></a>
-<span class="sourceLineNo">1407</span>        return stub.shutdown(controller, request);<a name="line.1407"></a>
-<span class="sourceLineNo">1408</span>      }<a name="line.1408"></a>
-<span class="sourceLineNo">1409</span><a name="line.1409"></a>
-<span class="sourceLineNo">1410</span>      @Override<a name="line.1410"></a>
-<span class="sourceLineNo">1411</span>      public MasterProtos.StopMasterResponse stopMaster(RpcController controller,<a name="line.1411"></a>
-<span class="sourceLineNo">1412</span>          MasterProtos.StopMasterRequest request) throws ServiceException {<a name="line.1412"></a>
-<span class="sourceLineNo">1413</span>        return stub.stopMaster(controller, request);<a name="line.1413"></a>
-<span class="sourceLineNo">1414</span>      }<a name="line.1414"></a>
-<span class="sourceLineNo">1415</span><a name="line.1415"></a>
-<span class="sourceLineNo">1416</span>      @Override<a name="line.1416"></a>
-<span class="sourceLineNo">1417</span>      public MasterProtos.IsInMaintenanceModeResponse isMasterInMaintenanceMode(<a name="line.1417"></a>
-<span class="sourceLineNo">1418</span>          final RpcController controller,<a name="line.1418"></a>
-<span class="sourceLineNo">1419</span>          final MasterProtos.IsInMaintenanceModeRequest request) throws ServiceException {<a name="line.1419"></a>
-<span class="sourceLineNo">1420</span>        return stub.isMasterInMaintenanceMode(controller, request);<a name="line.1420"></a>
-<span class="sourceLineNo">1421</span>      }<a name="line.1421"></a>
-<span class="sourceLineNo">1422</span><a name="line.1422"></a>
-<span class="sourceLineNo">1423</span>      @Override<a name="line.1423"></a>
-<span class="sourceLineNo">1424</span>      public MasterProtos.BalanceResponse balance(RpcController controller,<a name="line.1424"></a>
-<span class="sourceLineNo">1425</span>          MasterProtos.BalanceRequest request) throws ServiceException {<a name="line.1425"></a>
-<span class="sourceLineNo">1426</span>        return stub.balance(controller, request);<a name="line.1426"></a>
-<span class="sourceLineNo">1427</span>      }<a name="line.1427"></a>
-<span class="sourceLineNo">1428</span><a name="line.1428"></a>
-<span class="sourceLineNo">1429</span>      @Override<a name="line.1429"></a>
-<span class="sourceLineNo">1430</span>      public MasterProtos.SetBalancerRunningResponse setBalancerRunning(<a name="line.1430"></a>
-<span class="sourceLineNo">1431</span>          RpcController controller, MasterProtos.SetBalancerRunningRequest request)<a name="line.1431"></a>
-<span class="sourceLineNo">1432</span>          throws ServiceException {<a name="line.1432"></a>
-<span class="sourceLineNo">1433</span>        return stub.setBalancerRunning(controller, request);<a name="line.1433"></a>
-<span class="sourceLineNo">1434</span>      }<a name="line.1434"></a>
-<span class="sourceLineNo">1435</span><a name="line.1435"></a>
-<span class="sourceLineNo">1436</span>      @Override<a name="line.1436"></a>
-<span class="sourceLineNo">1437</span>      public NormalizeResponse normalize(RpcController controller,<a name="line.1437"></a>
-<span class="sourceLineNo">1438</span>          NormalizeRequest request) throws ServiceException {<a name="line.1438"></a>
-<span class="sourceLineNo">1439</span>        return stub.normalize(controller, request);<a name="line.1439"></a>
-<span class="sourceLineNo">1440</span>      }<a name="line.1440"></a>
-<span class="sourceLineNo">1441</span><a name="line.1441"></a>
-<span class="sourceLineNo">1442</span>      @Override<a name="line.1442"></a>
-<span class="sourceLineNo">1443</span>      public SetNormalizerRunningResponse setNormalizerRunning(<a name="line.1443"></a>
-<span class="sourceLineNo">1444</span>          RpcController controller, SetNormalizerRunningRequest request)<a name="line.1444"></a>
-<span class="sourceLineNo">1445</span>          throws ServiceException {<a name="line.1445"></a>
-<span class="sourceLineNo">1446</span>        return stub.setNormalizerRunning(controller, request);<a name="line.1446"></a>
-<span class="sourceLineNo">1447</span>      }<a name="line.1447"></a>
-<span class="sourceLineNo">1448</span><a name="line.1448"></a>
-<span class="sourceLineNo">1449</span>      @Override<a name="line.1449"></a>
-<span class="sourceLineNo">1450</span>      public MasterProtos.RunCatalogScanResponse runCatalogScan(RpcController controller,<a name="line.1450"></a>
-<span class="sourceLineNo">1451</span>          MasterProtos.RunCatalogScanRequest request) throws ServiceException {<a name="line.1451"></a>
-<span class="sourceLineNo">1452</span>        return stub.runCatalogScan(controller, request);<a name="line.1452"></a>
-<span class="sourceLineNo">1453</span>      }<a name="line.1453"></a>
-<span class="sourceLineNo">1454</span><a name="line.1454"></a>
-<span class="sourceLineNo">1455</span>      @Override<a name="line.1455"></a>
-<span class="sourceLineNo">1456</span>      public MasterProtos.EnableCatalogJanitorResponse enableCatalogJanitor(<a name="line.1456"></a>
-<span class="sourceLineNo">1457</span>          RpcController controller, MasterProtos.EnableCatalogJanitorRequest request)<a name="line.1457"></a>
-<span class="sourceLineNo">1458</span>          throws ServiceException {<a name="line.1458"></a>
-<span class="sourceLineNo">1459</span>        return stub.enableCatalogJanitor(controller, request);<a name="line.1459"></a>
-<span class="sourceLineNo">1460</span>      }<a name="line.1460"></a>
-<span class="sourceLineNo">1461</span><a name="line.1461"></a>
-<span class="sourceLineNo">1462</span>      @Override<a name="line.1462"></a>
-<span class="sourceLineNo">1463</span>      public MasterProtos.IsCatalogJanitorEnabledResponse isCatalogJanitorEnabled(<a name="line.1463"></a>
-<span class="sourceLineNo">1464</span>          RpcController controller, MasterProtos.IsCatalogJanitorEnabledRequest request)<a name="line.1464"></a>
-<span class="sourceLineNo">1465</span>          throws ServiceException {<a name="line.1465"></a>
-<span class="sourceLineNo">1466</span>        return stub.isCatalogJanitorEnabled(controller, request);<a name="line.1466"></a>
-<span class="sourceLineNo">1467</span>      }<a name="line.1467"></a>
-<span class="sourceLineNo">1468</span><a name="line.1468"></a>
-<span class="sourceLineNo">1469</span>      @Override<a name="line.1469"></a>
-<span class="sourceLineNo">1470</span>      public MasterProtos.RunCleanerChoreResponse runCleanerChore(RpcController controller,<a name="line.1470"></a>
-<span class="sourceLineNo">1471</span>          MasterProtos.RunCleanerChoreRequest request)<a name="line.1471"></a>
-<span class="sourceLineNo">1472</span>          throws ServiceException {<a name="line.1472"></a>
-<span class="sourceLineNo">1473</span>        return stub.runCleanerChore(controller, request);<a name="line.1473"></a>
-<span class="sourceLineNo">1474</span>      }<a name="line.1474"></a>
-<span class="sourceLineNo">1475</span><a name="line.1475"></a>
-<span class="sourceLineNo">1476</span>      @Override<a name="line.1476"></a>
-<span class="sourceLineNo">1477</span>      public MasterProtos.SetCleanerChoreRunningResponse setCleanerChoreRunning(<a name="line.1477"></a>
-<span class="sourceLineNo">1478</span>          RpcController controller, MasterProtos.SetCleanerChoreRunningRequest request)<a name="line.1478"></a>
-<span class="sourceLineNo">1479</span>          throws ServiceException {<a name="line.1479"></a>
-<span class="sourceLineNo">1480</span>        return stub.setCleanerChoreRunning(controller, request);<a name="line.1480"></a>
-<span class="sourceLineNo">1481</span>      }<a name="line.1481"></a>
-<span class="sourceLineNo">1482</span><a name="line.1482"></a>
-<span class="sourceLineNo">1483</span>      @Override<a name="line.1483"></a>
-<span class="sourceLineNo">1484</span>      public MasterProtos.IsCleanerChoreEnabledResponse isCleanerChoreEnabled(<a name="line.1484"></a>
-<span class="sourceLineNo">1485</span>          RpcController controller, MasterProtos.IsCleanerChoreEnabledRequest request)<a name="line.1485"></a>
-<span class="sourceLineNo">1486</span>          throws ServiceException {<a name="line.1486"></a>
-<span class="sourceLineNo">1487</span>        return stub.isCleanerChoreEnabled(controller, request);<a name="line.1487"></a>
-<span class="sourceLineNo">1488</span>      }<a name="line.1488"></a>
-<span class="sourceLineNo">1489</span><a name="line.1489"></a>
-<span class="sourceLineNo">1490</span>      @Override<a name="line.1490"></a>
-<span class="sourceLineNo">1491</span>      public ClientProtos.CoprocessorServiceResponse execMasterService(<a name="line.1491"></a>
-<span class="sourceLineNo">1492</span>          RpcController controller, ClientProtos.CoprocessorServiceRequest request)<a name="line.1492"></a>
-<span class="sourceLineNo">1493</span>          throws ServiceException {<a name="line.1493"></a>
-<span class="sourceLineNo">1494</span>        return stub.execMasterService(controller, request);<a name="line.1494"></a>
-<span class="sourceLineNo">1495</span>      }<a name="line.1495"></a>
-<span class="sourceLineNo">1496</span><a name="line.1496"></a>
-<span class="sourceLineNo">1497</span>      @Override<a name="line.1497"></a>
-<span class="sourceLineNo">1498</span>      public MasterProtos.SnapshotResponse snapshot(RpcController controller,<a name="line.1498"></a>
-<span class="sourceLineNo">1499</span>          MasterProtos.SnapshotRequest request) throws ServiceException {<a name="line.1499"></a>
-<span class="sourceLineNo">1500</span>        return stub.snapshot(controller, request);<a name="line.1500"></a>
-<span class="sourceLineNo">1501</span>      }<a name="line.1501"></a>
-<span class="sourceLineNo">1502</span><a name="line.1502"></a>
-<span class="sourceLineNo">1503</span>      @Override<a name="line.1503"></a>
-<span class="sourceLineNo">1504</span>      public MasterProtos.GetCompletedSnapshotsResponse getCompletedSnapshots(<a name="line.1504"></a>
-<span class="sourceLineNo">1505</span>          RpcController controller, MasterProtos.GetCompletedSnapshotsRequest request)<a name="line.1505"></a>
-<span class="sourceLineNo">1506</span>          throws ServiceException {<a name="line.1506"></a>
-<span class="sourceLineNo">1507</span>        return stub.getCompletedSnapshots(controller, request);<a name="line.1507"></a>
-<span class="sourceLineNo">1508</span>      }<a name="line.1508"></a>
-<span class="sourceLineNo">1509</span><a name="line.1509"></a>
-<span class="sourceLineNo">1510</span>      @Override<a name="line.1510"></a>
-<span class="sourceLineNo">1511</span>      public MasterProtos.DeleteSnapshotResponse deleteSnapshot(RpcController controller,<a name="line.1511"></a>
-<span class="sourceLineNo">1512</span>          MasterProtos.DeleteSnapshotRequest request) throws ServiceException {<a name="line.1512"></a>
-<span class="sourceLineNo">1513</span>        return stub.deleteSnapshot(controller, request);<a name="line.1513"></a>
-<span class="sourceLineNo">1514</span>      }<a name="line.1514"></a>
-<span class="sourceLineNo">1515</span><a name="line.1515"></a>
-<span class="sourceLineNo">1516</span>      @Override<a name="line.1516"></a>
-<span class="sourceLineNo">1517</span>      public MasterProtos.IsSnapshotDoneResponse isSnapshotDone(RpcController controller,<a name="line.1517"></a>
-<span class="sourceLineNo">1518</span>          MasterProtos.IsSnapshotDoneRequest request) throws ServiceException {<a name="line.1518"></a>
-<span class="sourceLineNo">1519</span>        return stub.isSnapshotDone(controller, request);<a name="line.1519"></a>
-<span class="sourceLineNo">1520</span>      }<a name="line.1520"></a>
-<span class="sourceLineNo">1521</span><a name="line.1521"></a>
-<span class="sourceLineNo">1522</span>      @Override<a name="line.1522"></a>
-<span class="sourceLineNo">1523</span>      public MasterProtos.RestoreSnapshotResponse restoreSnapshot(<a name="line.1523"></a>
-<span class="sourceLineNo">1524</span>          RpcController controller, MasterProtos.RestoreSnapshotRequest request)<a name="line.1524"></a>
-<span class="sourceLineNo">1525</span>          throws ServiceException {<a name="line.1525"></a>
-<span class="sourceLineNo">1526</span>        return stub.restoreSnapshot(controller, request);<a name="line.1526"></a>
-<span class="sourceLineNo">1527</span>      }<a name="line.1527"></a>
-<span class="sourceLineNo">1528</span><a name="line.1528"></a>
-<span class="sourceLineNo">1529</span>      @Override<a name="line.1529"></a>
-<span class="sourceLineNo">1530</span>      public MasterProtos.ExecProcedureResponse execProcedure(<a name="line.1530"></a>
-<span class="sourceLineNo">1531</span>          RpcController controller, MasterProtos.ExecProcedureRequest request)<a name="line.1531"></a>
-<span class="sourceLineNo">1532</span>          throws ServiceException {<a name="line.1532"></a>
-<span class="sourceLineNo">1533</span>        return stub.execProcedure(controller, request);<a name="line.1533"></a>
-<span class="sourceLineNo">1534</span>      }<a name="line.1534"></a>
-<span class="sourceLineNo">1535</span><a name="line.1535"></a>
-<span class="sourceLineNo">1536</span>      @Override<a name="line.1536"></a>
-<span class="sourceLineNo">1537</span>      public MasterProtos.ExecProcedureResponse execProcedureWithRet(<a name="line.1537"></a>
-<span class="sourceLineNo">1538</span>          RpcController controller, MasterProtos.ExecProcedureRequest request)<a name="line.1538"></a>
-<span class="sourceLineNo">1539</span>          throws ServiceException {<a name="line.1539"></a>
-<span class="sourceLineNo">1540</span>        return stub.execProcedureWithRet(controller, request);<a name="line.1540"></a>
-<span class="sourceLineNo">1541</span>      }<a name="line.1541"></a>
-<span class="sourceLineNo">1542</span><a name="line.1542"></a>
-<span class="sourceLineNo">1543</span>      @Override<a name="line.1543"></a>
-<span class="sourceLineNo">1544</span>      public MasterProtos.IsProcedureDoneResponse isProcedureDone(RpcController controller,<a name="line.1544"></a>
-<span class="sourceLineNo">1545</span>          MasterProtos.IsProcedureDoneRequest request) throws ServiceException {<a name="line.1545"></a>
-<span class="sourceLineNo">1546</span>        return stub.isProcedureDone(controller, request);<a name="line.1546"></a>
-<span class="sourceLineNo">1547</span>      }<a name="line.1547"></a>
-<span class="sourceLineNo">1548</span><a name="line.1548"></a>
-<span class="sourceLineNo">1549</span>      @Override<a name="line.1549"></a>
-<span class="sourceLineNo">1550</span>      public MasterProtos.GetProcedureResultResponse getProcedureResult(RpcController controller,<a name="line.1550"></a>
-<span class="sourceLineNo">1551</span>          MasterProtos.GetProcedureResultRequest request) throws ServiceException {<a name="line.1551"></a>
-<span class="sourceLineNo">1552</span>        return stub.getProcedureResult(controller, request);<a name="line.1552"></a>
-<span class="sourceLineNo">1553</span>      }<a name="line.1553"></a>
-<span class="sourceLineNo">1554</span><a name="line.1554"></a>
-<span class="sourceLineNo">1555</span>      @Override<a name="line.1555"></a>
-<span class="sourceLineNo">1556</span>      public MasterProtos.IsMasterRunningResponse isMasterRunning(<a name="line.1556"></a>
-<span class="sourceLineNo">1557</span>          RpcController controller, MasterProtos.IsMasterRunningRequest request)<a name="line.1557"></a>
-<span class="sourceLineNo">1558</span>          throws ServiceException {<a name="line.1558"></a>
-<span class="sourceLineNo">1559</span>        return stub.isMasterRunning(controller, request);<a name="line.1559"></a>
-<span class="sourceLineNo">1560</span>      }<a name="line.1560"></a>
-<span class="sourceLineNo">1561</span><a name="line.1561"></a>
-<span class="sourceLineNo">1562</span>      @Override<a name="line.1562"></a>
-<span class="sourceLineNo">1563</span>      public MasterProtos.ModifyNamespaceResponse modifyNamespace(RpcController controller,<a name="line.1563"></a>
-<span class="sourceLineNo">1564</span>          MasterProtos.ModifyNamespaceRequest request)<a name="line.1564"></a>
-<span class="sourceLineNo">1565</span>      throws ServiceException {<a name="line.1565"></a>
-<span class="sourceLineNo">1566</span>        return stub.modifyNamespace(controller, request);<a name="line.1566"></a>
-<span class="sourceLineNo">1567</span>      }<a name="line.1567"></a>
-<span class="sourceLineNo">1568</span><a name="line.1568"></a>
-<span class="sourceLineNo">1569</span>      @Override<a name="line.1569"></a>
-<span class="sourceLineNo">1570</span>      public MasterProtos.CreateNamespaceResponse createNamespace(<a name="line.1570"></a>
-<span class="sourceLineNo">1571</span>          RpcController controller,<a name="line.1571"></a>
-<span class="sourceLineNo">1572</span>          MasterProtos.CreateNamespaceRequest request) throws ServiceException {<a name="line.1572"></a>
-<span class="sourceLineNo">1573</span>        return stub.createNamespace(controller, request);<a name="line.1573"></a>
-<span class="sourceLineNo">1574</span>      }<a name="line.1574"></a>
-<span class="sourceLineNo">1575</span><a name="line.1575"></a>
-<span class="sourceLineNo">1576</span>      @Override<a name="line.1576"></a>
-<span class="sourceLineNo">1577</span>      public MasterProtos.DeleteNamespaceResponse deleteNamespace(<a name="line.1577"></a>
-<span class="sourceLineNo">1578</span>          RpcController controller,<a name="line.1578"></a>
-<span class="sourceLineNo">1579</span>          MasterProtos.DeleteNamespaceRequest request) throws ServiceException {<a name="line.1579"></a>
-<span class="sourceLineNo">1580</span>        return stub.deleteNamespace(controller, request);<a name="line.1580"></a>
-<span class="sourceLineNo">1581</span>      }<a name="line.1581"></a>
-<span class="sourceLineNo">1582</span><a name="line.1582"></a>
-<span class="sourceLineNo">1583</span>      @Override<a name="line.1583"></a>
-<span class="sourceLineNo">1584</span>      public MasterProtos.GetNamespaceDescriptorResponse getNamespaceDescriptor(<a name="line.1584"></a>
-<span class="sourceLineNo">1585</span>          RpcController controller,<a name="line.1585"></a>
-<span class="sourceLineNo">1586</span>          MasterProtos.GetNamespaceDescriptorRequest request) throws ServiceException {<a name="line.1586"></a>
-<span class="sourceLineNo">1587</span>        return stub.getNamespaceDescriptor(controller, request);<a name="line.1587"></a>
-<span class="sourceLineNo">1588</span>      }<a name="line.1588"></a>
-<span class="sourceLineNo">1589</span><a name="line.1589"></a>
-<span class="sourceLineNo">1590</span>      @Override<a name="line.1590"></a>
-<span class="sourceLineNo">1591</span>      public MasterProtos.ListNamespaceDescriptorsResponse listNamespaceDescriptors(<a name="line.1591"></a>
-<span class="sourceLineNo">1592</span>          RpcController controller,<a name="line.1592"></a>
-<span class="sourceLineNo">1593</span>          MasterProtos.ListNamespaceDescriptorsRequest request) throws ServiceException {<a name="line.1593"></a>
-<span class="sourceLineNo">1594</span>        return stub.listNamespaceDescriptors(controller, request);<a name="line.1594"></a>
-<span class="sourceLineNo">1595</span>      }<a name="line.1595"></a>
-<span class="sourceLineNo">1596</span><a name="line.1596"></a>
-<span class="sourceLineNo">1597</span>      @Override<a name="line.1597"></a>
-<span class="sourceLineNo">1598</span>      public MasterProtos.ListTableDescriptorsByNamespaceResponse listTableDescriptorsByNamespace(<a name="line.1598"></a>
-<span class="sourceLineNo">1599</span>          RpcController controller, MasterProtos.ListTableDescriptorsByNamespaceRequest request)<a name="line.1599"></a>
-<span class="sourceLineNo">1600</span>              throws ServiceException {<a name="line.1600"></a>
-<span class="sourceLineNo">1601</span>        return stub.listTableDescriptorsByNamespace(controller, request);<a name="line.1601"></a>
-<span class="sourceLineNo">1602</span>      }<a name="line.1602"></a>
-<span class="sourceLineNo">1603</span><a name="line.1603"></a>
-<span class="sourceLineNo">1604</span>      @Override<a name="line.1604"></a>
-<span class="sourceLineNo">1605</span>      public MasterProtos.ListTableNamesByNamespaceResponse listTableNamesByNamespace(<a name="line.1605"></a>
-<span class="sourceLineNo">1606</span>          RpcController controller, MasterProtos.ListTableNamesByNamespaceRequest request)<a name="line.1606"></a>
-<span class="sourceLineNo">1607</span>              throws ServiceException {<a name="line.1607"></a>
-<span class="sourceLineNo">1608</span>        return stub.listTableNamesByNamespace(controller, request);<a name="line.1608"></a>
-<span class="sourceLineNo">1609</span>      }<a name="line.1609"></a>
-<span class="sourceLineNo">1610</span><a name="line.1610"></a>
-<span class="sourceLineNo">1611</span>      @Override<a name="line.1611"></a>
-<span class="sourceLineNo">1612</span>      public MasterProtos.GetTableStateResponse getTableState(<a name="line.1612"></a>
-<span class="sourceLineNo">1613</span>              RpcController controller, MasterProtos.GetTableStateRequest request)<a name="line.1613"></a>
-<span class="sourceLineNo">1614</span>              throws ServiceException {<a name="line.1614"></a>
-<span class="sourceLineNo">1615</span>        return stub.getTableState(controller, request);<a name="line.1615"></a>
-<span class="sourceLineNo">1616</span>      }<a name="line.1616"></a>
-<span class="sourceLineNo">1617</span><a name="line.1617"></a>
-<span class="sourceLineNo">1618</span>      @Override<a name="line.1618"></a>
-<span class="sourceLineNo">1619</span>      public void close() {<a name="line.1619"></a>
-<span class="sourceLineNo">1620</span>        release(this.mss);<a name="line.1620"></a>
-<span class="sourceLineNo">1621</span>      }<a name="line.1621"></a>
-<span class="sourceLineNo">1622</span><a name="line.1622"></a>
-<span class="sourceLineNo">1623</span>      @Override<a name="line.1623"></a>
-<span class="sourceLineNo">1624</span>      public MasterProtos.GetSchemaAlterStatusResponse getSchemaAlterStatus(<a name="line.1624"></a>
-<span class="sourceLineNo">1625</span>          RpcController controller, MasterProtos.GetSchemaAlterStatusRequest request)<a name="line.1625"></a>
-<span class="sourceLineNo">1626</span>          throws ServiceException {<a name="line.1626"></a>
-<span class="sourceLineNo">1627</span>        return stub.getSchemaAlterStatus(controller, request);<a name="line.1627"></a>
-<span class="sourceLineNo">1628</span>      }<a name="line.1628"></a>
-<span class="sourceLineNo">1629</span><a name="line.1629"></a>
-<span class="sourceLineNo">1630</span>      @Override<a name="line.1630"></a>
-<span class="sourceLineNo">1631</span>      public MasterProtos.GetTableDescriptorsResponse getTableDescriptors(<a name="line.1631"></a>
-<span class="sourceLineNo">1632</span>          RpcController controller, MasterProtos.GetTableDescriptorsRequest request)<a name="line.1632"></a>
-<span class="sourceLineNo">1633</span>          throws ServiceException {<a name="line.1633"></a>
-<span class="sourceLineNo">1634</span>        return stub.getTableDescriptors(controller, request);<a name="line.1634"></a>
-<span class="sourceLineNo">1635</span>      }<a name="line.1635"></a>
-<span class="sourceLineNo">1636</span><a name="line.1636"></a>
-<span class="sourceLineNo">1637</span>      @Override<a name="line.1637"></a>
-<span class="sourceLineNo">1638</span>      public MasterProtos.GetTableNamesResponse getTableNames(<a name="line.1638"></a>
-<span class="sourceLineNo">1639</span>          RpcController controller, MasterProtos.GetTableNamesRequest request)<a name="line.1639"></a>
-<span class="sourceLineNo">1640</span>          throws ServiceException {<a name="line.1640"></a>
-<span class="sourceLineNo">1641</span>        return stub.getTableNames(controller, request);<a name="line.1641"></a>
-<span class="sourceLineNo">1642</span>      }<a name="line.1642"></a>
-<span class="sourceLineNo">1643</span><a name="line.1643"></a>
-<span class="sourceLineNo">1644</span>      @Override<a name="line.1644"></a>
-<span class="sourceLineNo">1645</span>      public MasterProtos.GetClusterStatusResponse getClusterStatus(<a name="line.1645"></a>
-<span class="sourceLineNo">1646</span>          RpcController controller, MasterProtos.GetClusterStatusRequest request)<a name="line.1646"></a>
-<span class="sourceLineNo">1647</span>          throws ServiceException {<a name="line.1647"></a>
-<span class="sourceLineNo">1648</span>        return stub.getClusterStatus(controller, request);<a name="line.1648"></a>
-<span class="sourceLineNo">1649</span>      }<a name="line.1649"></a>
-<span class="sourceLineNo">1650</span><a name="line.1650"></a>
-<span class="sourceLineNo">1651</span>      @Override<a name="line.1651"></a>
-<span class="sourceLineNo">1652</span>      public MasterProtos.SetQuotaResponse setQuota(<a name="line.1652"></a>
-<span class="sourceLineNo">1653</span>          RpcController controller, MasterProtos.SetQuotaRequest request)<a name="line.1653"></a>
-<span class="sourceLineNo">1654</span>          throws ServiceException {<a name="line.1654"></a>
-<span class="sourceLineNo">1655</span>        return stub.setQuota(controller, request);<a name="line.1655"></a>
-<span class="sourceLineNo">1656</span>      }<a name="line.1656"></a>
-<span class="sourceLineNo">1657</span><a name="line.1657"></a>
-<span class="sourceLineNo">1658</span>      @Override<a name="line.1658"></a>
-<span class="sourceLineNo">1659</span>      public MasterProtos.MajorCompactionTimestampResponse getLastMajorCompactionTimestamp(<a name="line.1659"></a>
-<span class="sourceLineNo">1660</span>          RpcController controller, MasterProtos.MajorCompactionTimestampRequest request)<a name="line.1660"></a>
-<span class="sourceLineNo">1661</span>          throws ServiceException {<a name="line.1661"></a>
-<span class="sourceLineNo">1662</span>        return stub.getLastMajorCompactionTimestamp(controller, request);<a name="line.1662"></a>
-<span class="sourceLineNo">1663</span>      }<a name="line.1663"></a>
-<span class="sourceLineNo">1664</span><a name="line.1664"></a>
-<span class="sourceLineNo">1665</span>      @Override<a name="line.1665"></a>
-<span class="sourceLineNo">1666</span>      public MasterProtos.MajorCompactionTimestampResponse getLastMajorCompactionTimestampForRegion(<a name="line.1666"></a>
-<span class="sourceLineNo">1667</span>          RpcController controller, MasterProtos.MajorCompactionTimestampForRegionRequest request)<a name="line.1667"></a>
-<span class="sourceLineNo">1668</span>          throws ServiceException {<a name="line.1668"></a>
-<span class="sourceLineNo">1669</span>        return stub.getLastMajorCompactionTimestampForRegion(controller, request);<a name="line.1669"></a>
-<span class="sourceLineNo">1670</span>      }<a name="line.1670"></a>
-<span class="sourceLineNo">1671</span><a name="line.1671"></a>
-<span class="sourceLineNo">1672</span>      @Override<a name="line.1672"></a>
-<span class="sourceLineNo">1673</span>      public IsBalancerEnabledResponse isBalancerEnabled(RpcController controller,<a name="line.1673"></a>
-<span class="sourceLineNo">1674</span>          IsBalancerEnabledRequest request) throws ServiceException {<a name="line.1674"></a>
-<span class="sourceLineNo">1675</span>        return stub.isBalancerEnabled(controller, request);<a name="line.1675"></a>
-<span class="sourceLineNo">1676</span>      }<a name="line.1676"></a>
-<span class="sourceLineNo">1677</span><a name="line.1677"></a>
-<span class="sourceLineNo">1678</span>      @Override<a name="line.1678"></a>
-<span class="sourceLineNo">1679</span>      public MasterProtos.SetSplitOrMergeEnabledResponse setSplitOrMergeEnabled(<a name="line.1679"></a>
-<span class="sourceLineNo">1680</span>        RpcController controller, MasterProtos.SetSplitOrMergeEnabledRequest request)<a name="line.1680"></a>
-<span class="sourceLineNo">1681</span>        throws ServiceException {<a name="line.1681"></a>
-<span class="sourceLineNo">1682</span>        return stub.setSplitOrMergeEnabled(controller, request);<a name="line.1682"></a>
-<span class="sourceLineNo">1683</span>      }<a name="line.1683"></a>
-<span class="sourceLineNo">1684</span><a name="line.1684"></a>
-<span class="sourceLineNo">1685</span>      @Override<a name="line.1685"></a>
-<span class="sourceLineNo">1686</span>      public MasterProtos.IsSplitOrMergeEnabledResponse isSplitOrMergeEnabled(<a name="line.1686"></a>
-<span class="sourceLineNo">1687</span>        RpcController controller, MasterProtos.IsSplitOrMergeEnabledRequest request)<a name="line.1687"></a>
-<span class="sourceLineNo">1688</span>              throws ServiceException {<a name="line.1688"></a>
-<span class="sourceLineNo">1689</span>        return stub.isSplitOrMergeEnabled(controller, request);<a name="line.1689"></a>
-<span class="sourceLineNo">1690</span>      }<a name="line.1690"></a>
-<span class="sourceLineNo">1691</span><a name="line.1691"></a>
-<span class="sourceLineNo">1692</span>      @Override<a name="line.1692"></a>
-<span class="sourceLineNo">1693</span>      public IsNormalizerEnabledResponse isNormalizerEnabled(RpcController controller,<a name="line.1693"></a>
-<span class="sourceLineNo">1694</span>          IsNormalizerEnabledRequest request) throws ServiceException {<a name="line.1694"></a>
-<span class="sourceLineNo">1695</span>        return stub.isNormalizerEnabled(controller, request);<a name="line.1695"></a>
-<span class="sourceLineNo">1696</span>      }<a name="line.1696"></a>
-<span class="sourceLineNo">1697</span><a name="line.1697"></a>
-<span class="sourceLineNo">1698</span>      @Override<a name="line.1698"></a>
-<span class="sourceLineNo">1699</span>      public SecurityCapabilitiesResponse getSecurityCapabilities(RpcController controller,<a name="line.1699"></a>
-<span class="sourceLineNo">1700</span>          SecurityCapabilitiesRequest request) throws ServiceException {<a name="line.1700"></a>
-<span class="sourceLineNo">1701</span>        return stub.getSecurityCapabilities(controller, request);<a name="line.1701"></a>
-<span class="sourceLineNo">1702</span>      }<a name="line.1702"></a>
-<span class="sourceLineNo">1703</span><a name="line.1703"></a>
-<span class="sourceLineNo">1704</span>      @Override<a name="line.1704"></a>
-<span class="sourceLineNo">1705</span>      public AddReplicationPeerResponse addReplicationPeer(RpcController controller,<a name="line.1705"></a>
-<span class="sourceLineNo">1706</span>          AddReplicationPeerRequest request) throws ServiceException {<a name="line.1706"></a>
-

<TRUNCATED>

Mime
View raw message