hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject [03/51] [partial] hbase git commit: Published site at 7979ac46cce36f21033f8ed03c8d0dd5fddde005.
Date Tue, 01 Dec 2015 21:20:19 GMT
http://git-wip-us.apache.org/repos/asf/hbase/blob/c0e3c35a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RegionServerServices.RegionStateTransitionContext.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RegionServerServices.RegionStateTransitionContext.html b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RegionServerServices.RegionStateTransitionContext.html
index a336a4a..629132a 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RegionServerServices.RegionStateTransitionContext.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RegionServerServices.RegionStateTransitionContext.html
@@ -63,183 +63,189 @@
 <span class="sourceLineNo">055</span>  WAL getWAL(HRegionInfo regionInfo) throws IOException;<a name="line.55"></a>
 <span class="sourceLineNo">056</span><a name="line.56"></a>
 <span class="sourceLineNo">057</span>  /**<a name="line.57"></a>
-<span class="sourceLineNo">058</span>   * @return Implementation of {@link CompactionRequestor} or null.<a name="line.58"></a>
-<span class="sourceLineNo">059</span>   */<a name="line.59"></a>
-<span class="sourceLineNo">060</span>  CompactionRequestor getCompactionRequester();<a name="line.60"></a>
-<span class="sourceLineNo">061</span><a name="line.61"></a>
-<span class="sourceLineNo">062</span>  /**<a name="line.62"></a>
-<span class="sourceLineNo">063</span>   * @return Implementation of {@link FlushRequester} or null.<a name="line.63"></a>
-<span class="sourceLineNo">064</span>   */<a name="line.64"></a>
-<span class="sourceLineNo">065</span>  FlushRequester getFlushRequester();<a name="line.65"></a>
-<span class="sourceLineNo">066</span><a name="line.66"></a>
-<span class="sourceLineNo">067</span>  /**<a name="line.67"></a>
-<span class="sourceLineNo">068</span>   * @return the RegionServerAccounting for this Region Server<a name="line.68"></a>
-<span class="sourceLineNo">069</span>   */<a name="line.69"></a>
-<span class="sourceLineNo">070</span>  RegionServerAccounting getRegionServerAccounting();<a name="line.70"></a>
-<span class="sourceLineNo">071</span><a name="line.71"></a>
-<span class="sourceLineNo">072</span>  /**<a name="line.72"></a>
-<span class="sourceLineNo">073</span>   * @return RegionServer's instance of {@link TableLockManager}<a name="line.73"></a>
-<span class="sourceLineNo">074</span>   */<a name="line.74"></a>
-<span class="sourceLineNo">075</span>  TableLockManager getTableLockManager();<a name="line.75"></a>
-<span class="sourceLineNo">076</span><a name="line.76"></a>
-<span class="sourceLineNo">077</span>  /**<a name="line.77"></a>
-<span class="sourceLineNo">078</span>   * @return RegionServer's instance of {@link RegionServerQuotaManager}<a name="line.78"></a>
-<span class="sourceLineNo">079</span>   */<a name="line.79"></a>
-<span class="sourceLineNo">080</span>  RegionServerQuotaManager getRegionServerQuotaManager();<a name="line.80"></a>
-<span class="sourceLineNo">081</span><a name="line.81"></a>
-<span class="sourceLineNo">082</span>  /**<a name="line.82"></a>
-<span class="sourceLineNo">083</span>   * Context for postOpenDeployTasks().<a name="line.83"></a>
-<span class="sourceLineNo">084</span>   */<a name="line.84"></a>
-<span class="sourceLineNo">085</span>  class PostOpenDeployContext {<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    private final Region region;<a name="line.86"></a>
-<span class="sourceLineNo">087</span>    private final long masterSystemTime;<a name="line.87"></a>
-<span class="sourceLineNo">088</span><a name="line.88"></a>
-<span class="sourceLineNo">089</span>    @InterfaceAudience.Private<a name="line.89"></a>
-<span class="sourceLineNo">090</span>    public PostOpenDeployContext(Region region, long masterSystemTime) {<a name="line.90"></a>
-<span class="sourceLineNo">091</span>      this.region = region;<a name="line.91"></a>
-<span class="sourceLineNo">092</span>      this.masterSystemTime = masterSystemTime;<a name="line.92"></a>
-<span class="sourceLineNo">093</span>    }<a name="line.93"></a>
-<span class="sourceLineNo">094</span>    public Region getRegion() {<a name="line.94"></a>
-<span class="sourceLineNo">095</span>      return region;<a name="line.95"></a>
-<span class="sourceLineNo">096</span>    }<a name="line.96"></a>
-<span class="sourceLineNo">097</span>    public long getMasterSystemTime() {<a name="line.97"></a>
-<span class="sourceLineNo">098</span>      return masterSystemTime;<a name="line.98"></a>
+<span class="sourceLineNo">058</span>   * Releases the dependency of this region to the WAL previously obtained from<a name="line.58"></a>
+<span class="sourceLineNo">059</span>   * {@link #getWAL(HRegionInfo)}.<a name="line.59"></a>
+<span class="sourceLineNo">060</span>   */<a name="line.60"></a>
+<span class="sourceLineNo">061</span>  void releaseWAL(HRegionInfo regionInfo, WAL wal) throws IOException;<a name="line.61"></a>
+<span class="sourceLineNo">062</span><a name="line.62"></a>
+<span class="sourceLineNo">063</span>  /**<a name="line.63"></a>
+<span class="sourceLineNo">064</span>   * @return Implementation of {@link CompactionRequestor} or null.<a name="line.64"></a>
+<span class="sourceLineNo">065</span>   */<a name="line.65"></a>
+<span class="sourceLineNo">066</span>  CompactionRequestor getCompactionRequester();<a name="line.66"></a>
+<span class="sourceLineNo">067</span><a name="line.67"></a>
+<span class="sourceLineNo">068</span>  /**<a name="line.68"></a>
+<span class="sourceLineNo">069</span>   * @return Implementation of {@link FlushRequester} or null.<a name="line.69"></a>
+<span class="sourceLineNo">070</span>   */<a name="line.70"></a>
+<span class="sourceLineNo">071</span>  FlushRequester getFlushRequester();<a name="line.71"></a>
+<span class="sourceLineNo">072</span><a name="line.72"></a>
+<span class="sourceLineNo">073</span>  /**<a name="line.73"></a>
+<span class="sourceLineNo">074</span>   * @return the RegionServerAccounting for this Region Server<a name="line.74"></a>
+<span class="sourceLineNo">075</span>   */<a name="line.75"></a>
+<span class="sourceLineNo">076</span>  RegionServerAccounting getRegionServerAccounting();<a name="line.76"></a>
+<span class="sourceLineNo">077</span><a name="line.77"></a>
+<span class="sourceLineNo">078</span>  /**<a name="line.78"></a>
+<span class="sourceLineNo">079</span>   * @return RegionServer's instance of {@link TableLockManager}<a name="line.79"></a>
+<span class="sourceLineNo">080</span>   */<a name="line.80"></a>
+<span class="sourceLineNo">081</span>  TableLockManager getTableLockManager();<a name="line.81"></a>
+<span class="sourceLineNo">082</span><a name="line.82"></a>
+<span class="sourceLineNo">083</span>  /**<a name="line.83"></a>
+<span class="sourceLineNo">084</span>   * @return RegionServer's instance of {@link RegionServerQuotaManager}<a name="line.84"></a>
+<span class="sourceLineNo">085</span>   */<a name="line.85"></a>
+<span class="sourceLineNo">086</span>  RegionServerQuotaManager getRegionServerQuotaManager();<a name="line.86"></a>
+<span class="sourceLineNo">087</span><a name="line.87"></a>
+<span class="sourceLineNo">088</span>  /**<a name="line.88"></a>
+<span class="sourceLineNo">089</span>   * Context for postOpenDeployTasks().<a name="line.89"></a>
+<span class="sourceLineNo">090</span>   */<a name="line.90"></a>
+<span class="sourceLineNo">091</span>  class PostOpenDeployContext {<a name="line.91"></a>
+<span class="sourceLineNo">092</span>    private final Region region;<a name="line.92"></a>
+<span class="sourceLineNo">093</span>    private final long masterSystemTime;<a name="line.93"></a>
+<span class="sourceLineNo">094</span><a name="line.94"></a>
+<span class="sourceLineNo">095</span>    @InterfaceAudience.Private<a name="line.95"></a>
+<span class="sourceLineNo">096</span>    public PostOpenDeployContext(Region region, long masterSystemTime) {<a name="line.96"></a>
+<span class="sourceLineNo">097</span>      this.region = region;<a name="line.97"></a>
+<span class="sourceLineNo">098</span>      this.masterSystemTime = masterSystemTime;<a name="line.98"></a>
 <span class="sourceLineNo">099</span>    }<a name="line.99"></a>
-<span class="sourceLineNo">100</span>  }<a name="line.100"></a>
-<span class="sourceLineNo">101</span><a name="line.101"></a>
-<span class="sourceLineNo">102</span>  /**<a name="line.102"></a>
-<span class="sourceLineNo">103</span>   * Tasks to perform after region open to complete deploy of region on<a name="line.103"></a>
-<span class="sourceLineNo">104</span>   * regionserver<a name="line.104"></a>
-<span class="sourceLineNo">105</span>   *<a name="line.105"></a>
-<span class="sourceLineNo">106</span>   * @param context the context<a name="line.106"></a>
-<span class="sourceLineNo">107</span>   * @throws KeeperException<a name="line.107"></a>
-<span class="sourceLineNo">108</span>   * @throws IOException<a name="line.108"></a>
-<span class="sourceLineNo">109</span>   */<a name="line.109"></a>
-<span class="sourceLineNo">110</span>  void postOpenDeployTasks(final PostOpenDeployContext context) throws KeeperException, IOException;<a name="line.110"></a>
-<span class="sourceLineNo">111</span><a name="line.111"></a>
-<span class="sourceLineNo">112</span>  /**<a name="line.112"></a>
-<span class="sourceLineNo">113</span>   * Tasks to perform after region open to complete deploy of region on<a name="line.113"></a>
-<span class="sourceLineNo">114</span>   * regionserver<a name="line.114"></a>
-<span class="sourceLineNo">115</span>   *<a name="line.115"></a>
-<span class="sourceLineNo">116</span>   * @param r Region to open.<a name="line.116"></a>
-<span class="sourceLineNo">117</span>   * @throws KeeperException<a name="line.117"></a>
-<span class="sourceLineNo">118</span>   * @throws IOException<a name="line.118"></a>
-<span class="sourceLineNo">119</span>   * @deprecated use {@link #postOpenDeployTasks(PostOpenDeployContext)}<a name="line.119"></a>
-<span class="sourceLineNo">120</span>   */<a name="line.120"></a>
-<span class="sourceLineNo">121</span>  @Deprecated<a name="line.121"></a>
-<span class="sourceLineNo">122</span>  void postOpenDeployTasks(final Region r) throws KeeperException, IOException;<a name="line.122"></a>
-<span class="sourceLineNo">123</span><a name="line.123"></a>
-<span class="sourceLineNo">124</span>  class RegionStateTransitionContext {<a name="line.124"></a>
-<span class="sourceLineNo">125</span>    private final TransitionCode code;<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    private final long openSeqNum;<a name="line.126"></a>
-<span class="sourceLineNo">127</span>    private final long masterSystemTime;<a name="line.127"></a>
-<span class="sourceLineNo">128</span>    private final HRegionInfo[] hris;<a name="line.128"></a>
+<span class="sourceLineNo">100</span>    public Region getRegion() {<a name="line.100"></a>
+<span class="sourceLineNo">101</span>      return region;<a name="line.101"></a>
+<span class="sourceLineNo">102</span>    }<a name="line.102"></a>
+<span class="sourceLineNo">103</span>    public long getMasterSystemTime() {<a name="line.103"></a>
+<span class="sourceLineNo">104</span>      return masterSystemTime;<a name="line.104"></a>
+<span class="sourceLineNo">105</span>    }<a name="line.105"></a>
+<span class="sourceLineNo">106</span>  }<a name="line.106"></a>
+<span class="sourceLineNo">107</span><a name="line.107"></a>
+<span class="sourceLineNo">108</span>  /**<a name="line.108"></a>
+<span class="sourceLineNo">109</span>   * Tasks to perform after region open to complete deploy of region on<a name="line.109"></a>
+<span class="sourceLineNo">110</span>   * regionserver<a name="line.110"></a>
+<span class="sourceLineNo">111</span>   *<a name="line.111"></a>
+<span class="sourceLineNo">112</span>   * @param context the context<a name="line.112"></a>
+<span class="sourceLineNo">113</span>   * @throws KeeperException<a name="line.113"></a>
+<span class="sourceLineNo">114</span>   * @throws IOException<a name="line.114"></a>
+<span class="sourceLineNo">115</span>   */<a name="line.115"></a>
+<span class="sourceLineNo">116</span>  void postOpenDeployTasks(final PostOpenDeployContext context) throws KeeperException, IOException;<a name="line.116"></a>
+<span class="sourceLineNo">117</span><a name="line.117"></a>
+<span class="sourceLineNo">118</span>  /**<a name="line.118"></a>
+<span class="sourceLineNo">119</span>   * Tasks to perform after region open to complete deploy of region on<a name="line.119"></a>
+<span class="sourceLineNo">120</span>   * regionserver<a name="line.120"></a>
+<span class="sourceLineNo">121</span>   *<a name="line.121"></a>
+<span class="sourceLineNo">122</span>   * @param r Region to open.<a name="line.122"></a>
+<span class="sourceLineNo">123</span>   * @throws KeeperException<a name="line.123"></a>
+<span class="sourceLineNo">124</span>   * @throws IOException<a name="line.124"></a>
+<span class="sourceLineNo">125</span>   * @deprecated use {@link #postOpenDeployTasks(PostOpenDeployContext)}<a name="line.125"></a>
+<span class="sourceLineNo">126</span>   */<a name="line.126"></a>
+<span class="sourceLineNo">127</span>  @Deprecated<a name="line.127"></a>
+<span class="sourceLineNo">128</span>  void postOpenDeployTasks(final Region r) throws KeeperException, IOException;<a name="line.128"></a>
 <span class="sourceLineNo">129</span><a name="line.129"></a>
-<span class="sourceLineNo">130</span>    @InterfaceAudience.Private<a name="line.130"></a>
-<span class="sourceLineNo">131</span>    public RegionStateTransitionContext(TransitionCode code, long openSeqNum, long masterSystemTime,<a name="line.131"></a>
-<span class="sourceLineNo">132</span>        HRegionInfo... hris) {<a name="line.132"></a>
-<span class="sourceLineNo">133</span>      this.code = code;<a name="line.133"></a>
-<span class="sourceLineNo">134</span>      this.openSeqNum = openSeqNum;<a name="line.134"></a>
-<span class="sourceLineNo">135</span>      this.masterSystemTime = masterSystemTime;<a name="line.135"></a>
-<span class="sourceLineNo">136</span>      this.hris = hris;<a name="line.136"></a>
-<span class="sourceLineNo">137</span>    }<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    public TransitionCode getCode() {<a name="line.138"></a>
-<span class="sourceLineNo">139</span>      return code;<a name="line.139"></a>
-<span class="sourceLineNo">140</span>    }<a name="line.140"></a>
-<span class="sourceLineNo">141</span>    public long getOpenSeqNum() {<a name="line.141"></a>
-<span class="sourceLineNo">142</span>      return openSeqNum;<a name="line.142"></a>
+<span class="sourceLineNo">130</span>  class RegionStateTransitionContext {<a name="line.130"></a>
+<span class="sourceLineNo">131</span>    private final TransitionCode code;<a name="line.131"></a>
+<span class="sourceLineNo">132</span>    private final long openSeqNum;<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    private final long masterSystemTime;<a name="line.133"></a>
+<span class="sourceLineNo">134</span>    private final HRegionInfo[] hris;<a name="line.134"></a>
+<span class="sourceLineNo">135</span><a name="line.135"></a>
+<span class="sourceLineNo">136</span>    @InterfaceAudience.Private<a name="line.136"></a>
+<span class="sourceLineNo">137</span>    public RegionStateTransitionContext(TransitionCode code, long openSeqNum, long masterSystemTime,<a name="line.137"></a>
+<span class="sourceLineNo">138</span>        HRegionInfo... hris) {<a name="line.138"></a>
+<span class="sourceLineNo">139</span>      this.code = code;<a name="line.139"></a>
+<span class="sourceLineNo">140</span>      this.openSeqNum = openSeqNum;<a name="line.140"></a>
+<span class="sourceLineNo">141</span>      this.masterSystemTime = masterSystemTime;<a name="line.141"></a>
+<span class="sourceLineNo">142</span>      this.hris = hris;<a name="line.142"></a>
 <span class="sourceLineNo">143</span>    }<a name="line.143"></a>
-<span class="sourceLineNo">144</span>    public long getMasterSystemTime() {<a name="line.144"></a>
-<span class="sourceLineNo">145</span>      return masterSystemTime;<a name="line.145"></a>
+<span class="sourceLineNo">144</span>    public TransitionCode getCode() {<a name="line.144"></a>
+<span class="sourceLineNo">145</span>      return code;<a name="line.145"></a>
 <span class="sourceLineNo">146</span>    }<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    public HRegionInfo[] getHris() {<a name="line.147"></a>
-<span class="sourceLineNo">148</span>      return hris;<a name="line.148"></a>
+<span class="sourceLineNo">147</span>    public long getOpenSeqNum() {<a name="line.147"></a>
+<span class="sourceLineNo">148</span>      return openSeqNum;<a name="line.148"></a>
 <span class="sourceLineNo">149</span>    }<a name="line.149"></a>
-<span class="sourceLineNo">150</span>  }<a name="line.150"></a>
-<span class="sourceLineNo">151</span><a name="line.151"></a>
-<span class="sourceLineNo">152</span>  /**<a name="line.152"></a>
-<span class="sourceLineNo">153</span>   * Notify master that a handler requests to change a region state<a name="line.153"></a>
-<span class="sourceLineNo">154</span>   */<a name="line.154"></a>
-<span class="sourceLineNo">155</span>  boolean reportRegionStateTransition(final RegionStateTransitionContext context);<a name="line.155"></a>
-<span class="sourceLineNo">156</span><a name="line.156"></a>
-<span class="sourceLineNo">157</span>  /**<a name="line.157"></a>
-<span class="sourceLineNo">158</span>   * Notify master that a handler requests to change a region state<a name="line.158"></a>
-<span class="sourceLineNo">159</span>   * @deprecated use {@link #reportRegionStateTransition(RegionStateTransitionContext)}<a name="line.159"></a>
+<span class="sourceLineNo">150</span>    public long getMasterSystemTime() {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>      return masterSystemTime;<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    }<a name="line.152"></a>
+<span class="sourceLineNo">153</span>    public HRegionInfo[] getHris() {<a name="line.153"></a>
+<span class="sourceLineNo">154</span>      return hris;<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    }<a name="line.155"></a>
+<span class="sourceLineNo">156</span>  }<a name="line.156"></a>
+<span class="sourceLineNo">157</span><a name="line.157"></a>
+<span class="sourceLineNo">158</span>  /**<a name="line.158"></a>
+<span class="sourceLineNo">159</span>   * Notify master that a handler requests to change a region state<a name="line.159"></a>
 <span class="sourceLineNo">160</span>   */<a name="line.160"></a>
-<span class="sourceLineNo">161</span>  @Deprecated<a name="line.161"></a>
-<span class="sourceLineNo">162</span>  boolean reportRegionStateTransition(TransitionCode code, long openSeqNum, HRegionInfo... hris);<a name="line.162"></a>
-<span class="sourceLineNo">163</span><a name="line.163"></a>
-<span class="sourceLineNo">164</span>  /**<a name="line.164"></a>
-<span class="sourceLineNo">165</span>   * Notify master that a handler requests to change a region state<a name="line.165"></a>
-<span class="sourceLineNo">166</span>   * @deprecated use {@link #reportRegionStateTransition(RegionStateTransitionContext)}<a name="line.166"></a>
-<span class="sourceLineNo">167</span>   */<a name="line.167"></a>
-<span class="sourceLineNo">168</span>  @Deprecated<a name="line.168"></a>
-<span class="sourceLineNo">169</span>  boolean reportRegionStateTransition(TransitionCode code, HRegionInfo... hris);<a name="line.169"></a>
-<span class="sourceLineNo">170</span><a name="line.170"></a>
-<span class="sourceLineNo">171</span>  /**<a name="line.171"></a>
-<span class="sourceLineNo">172</span>   * Returns a reference to the region server's RPC server<a name="line.172"></a>
+<span class="sourceLineNo">161</span>  boolean reportRegionStateTransition(final RegionStateTransitionContext context);<a name="line.161"></a>
+<span class="sourceLineNo">162</span><a name="line.162"></a>
+<span class="sourceLineNo">163</span>  /**<a name="line.163"></a>
+<span class="sourceLineNo">164</span>   * Notify master that a handler requests to change a region state<a name="line.164"></a>
+<span class="sourceLineNo">165</span>   * @deprecated use {@link #reportRegionStateTransition(RegionStateTransitionContext)}<a name="line.165"></a>
+<span class="sourceLineNo">166</span>   */<a name="line.166"></a>
+<span class="sourceLineNo">167</span>  @Deprecated<a name="line.167"></a>
+<span class="sourceLineNo">168</span>  boolean reportRegionStateTransition(TransitionCode code, long openSeqNum, HRegionInfo... hris);<a name="line.168"></a>
+<span class="sourceLineNo">169</span><a name="line.169"></a>
+<span class="sourceLineNo">170</span>  /**<a name="line.170"></a>
+<span class="sourceLineNo">171</span>   * Notify master that a handler requests to change a region state<a name="line.171"></a>
+<span class="sourceLineNo">172</span>   * @deprecated use {@link #reportRegionStateTransition(RegionStateTransitionContext)}<a name="line.172"></a>
 <span class="sourceLineNo">173</span>   */<a name="line.173"></a>
-<span class="sourceLineNo">174</span>  RpcServerInterface getRpcServer();<a name="line.174"></a>
-<span class="sourceLineNo">175</span><a name="line.175"></a>
-<span class="sourceLineNo">176</span>  /**<a name="line.176"></a>
-<span class="sourceLineNo">177</span>   * Get the regions that are currently being opened or closed in the RS<a name="line.177"></a>
-<span class="sourceLineNo">178</span>   * @return map of regions in transition in this RS<a name="line.178"></a>
+<span class="sourceLineNo">174</span>  @Deprecated<a name="line.174"></a>
+<span class="sourceLineNo">175</span>  boolean reportRegionStateTransition(TransitionCode code, HRegionInfo... hris);<a name="line.175"></a>
+<span class="sourceLineNo">176</span><a name="line.176"></a>
+<span class="sourceLineNo">177</span>  /**<a name="line.177"></a>
+<span class="sourceLineNo">178</span>   * Returns a reference to the region server's RPC server<a name="line.178"></a>
 <span class="sourceLineNo">179</span>   */<a name="line.179"></a>
-<span class="sourceLineNo">180</span>  ConcurrentMap&lt;byte[], Boolean&gt; getRegionsInTransitionInRS();<a name="line.180"></a>
+<span class="sourceLineNo">180</span>  RpcServerInterface getRpcServer();<a name="line.180"></a>
 <span class="sourceLineNo">181</span><a name="line.181"></a>
 <span class="sourceLineNo">182</span>  /**<a name="line.182"></a>
-<span class="sourceLineNo">183</span>   * @return Return the FileSystem object used by the regionserver<a name="line.183"></a>
-<span class="sourceLineNo">184</span>   */<a name="line.184"></a>
-<span class="sourceLineNo">185</span>  FileSystem getFileSystem();<a name="line.185"></a>
-<span class="sourceLineNo">186</span><a name="line.186"></a>
-<span class="sourceLineNo">187</span>  /**<a name="line.187"></a>
-<span class="sourceLineNo">188</span>   * @return The RegionServer's "Leases" service<a name="line.188"></a>
-<span class="sourceLineNo">189</span>   */<a name="line.189"></a>
-<span class="sourceLineNo">190</span>  Leases getLeases();<a name="line.190"></a>
-<span class="sourceLineNo">191</span><a name="line.191"></a>
-<span class="sourceLineNo">192</span>  /**<a name="line.192"></a>
-<span class="sourceLineNo">193</span>   * @return hbase executor service<a name="line.193"></a>
-<span class="sourceLineNo">194</span>   */<a name="line.194"></a>
-<span class="sourceLineNo">195</span>  ExecutorService getExecutorService();<a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span>  /**<a name="line.197"></a>
-<span class="sourceLineNo">198</span>   * @return set of recovering regions on the hosting region server<a name="line.198"></a>
-<span class="sourceLineNo">199</span>   */<a name="line.199"></a>
-<span class="sourceLineNo">200</span>  Map&lt;String, Region&gt; getRecoveringRegions();<a name="line.200"></a>
-<span class="sourceLineNo">201</span><a name="line.201"></a>
-<span class="sourceLineNo">202</span>  /**<a name="line.202"></a>
-<span class="sourceLineNo">203</span>   * Only required for "old" log replay; if it's removed, remove this.<a name="line.203"></a>
-<span class="sourceLineNo">204</span>   * @return The RegionServer's NonceManager<a name="line.204"></a>
+<span class="sourceLineNo">183</span>   * Get the regions that are currently being opened or closed in the RS<a name="line.183"></a>
+<span class="sourceLineNo">184</span>   * @return map of regions in transition in this RS<a name="line.184"></a>
+<span class="sourceLineNo">185</span>   */<a name="line.185"></a>
+<span class="sourceLineNo">186</span>  ConcurrentMap&lt;byte[], Boolean&gt; getRegionsInTransitionInRS();<a name="line.186"></a>
+<span class="sourceLineNo">187</span><a name="line.187"></a>
+<span class="sourceLineNo">188</span>  /**<a name="line.188"></a>
+<span class="sourceLineNo">189</span>   * @return Return the FileSystem object used by the regionserver<a name="line.189"></a>
+<span class="sourceLineNo">190</span>   */<a name="line.190"></a>
+<span class="sourceLineNo">191</span>  FileSystem getFileSystem();<a name="line.191"></a>
+<span class="sourceLineNo">192</span><a name="line.192"></a>
+<span class="sourceLineNo">193</span>  /**<a name="line.193"></a>
+<span class="sourceLineNo">194</span>   * @return The RegionServer's "Leases" service<a name="line.194"></a>
+<span class="sourceLineNo">195</span>   */<a name="line.195"></a>
+<span class="sourceLineNo">196</span>  Leases getLeases();<a name="line.196"></a>
+<span class="sourceLineNo">197</span><a name="line.197"></a>
+<span class="sourceLineNo">198</span>  /**<a name="line.198"></a>
+<span class="sourceLineNo">199</span>   * @return hbase executor service<a name="line.199"></a>
+<span class="sourceLineNo">200</span>   */<a name="line.200"></a>
+<span class="sourceLineNo">201</span>  ExecutorService getExecutorService();<a name="line.201"></a>
+<span class="sourceLineNo">202</span><a name="line.202"></a>
+<span class="sourceLineNo">203</span>  /**<a name="line.203"></a>
+<span class="sourceLineNo">204</span>   * @return set of recovering regions on the hosting region server<a name="line.204"></a>
 <span class="sourceLineNo">205</span>   */<a name="line.205"></a>
-<span class="sourceLineNo">206</span>  public ServerNonceManager getNonceManager();<a name="line.206"></a>
+<span class="sourceLineNo">206</span>  Map&lt;String, Region&gt; getRecoveringRegions();<a name="line.206"></a>
 <span class="sourceLineNo">207</span><a name="line.207"></a>
 <span class="sourceLineNo">208</span>  /**<a name="line.208"></a>
-<span class="sourceLineNo">209</span>   * @return all the online tables in this RS<a name="line.209"></a>
-<span class="sourceLineNo">210</span>   */<a name="line.210"></a>
-<span class="sourceLineNo">211</span>  Set&lt;TableName&gt; getOnlineTables();<a name="line.211"></a>
-<span class="sourceLineNo">212</span><a name="line.212"></a>
+<span class="sourceLineNo">209</span>   * Only required for "old" log replay; if it's removed, remove this.<a name="line.209"></a>
+<span class="sourceLineNo">210</span>   * @return The RegionServer's NonceManager<a name="line.210"></a>
+<span class="sourceLineNo">211</span>   */<a name="line.211"></a>
+<span class="sourceLineNo">212</span>  public ServerNonceManager getNonceManager();<a name="line.212"></a>
 <span class="sourceLineNo">213</span><a name="line.213"></a>
 <span class="sourceLineNo">214</span>  /**<a name="line.214"></a>
-<span class="sourceLineNo">215</span>   * Registers a new protocol buffer {@link Service} subclass as a coprocessor endpoint to be<a name="line.215"></a>
-<span class="sourceLineNo">216</span>   * available for handling<a name="line.216"></a>
-<span class="sourceLineNo">217</span>   * @param service the {@code Service} subclass instance to expose as a coprocessor endpoint<a name="line.217"></a>
-<span class="sourceLineNo">218</span>   * @return {@code true} if the registration was successful, {@code false}<a name="line.218"></a>
-<span class="sourceLineNo">219</span>   */<a name="line.219"></a>
-<span class="sourceLineNo">220</span>  boolean registerService(Service service);<a name="line.220"></a>
-<span class="sourceLineNo">221</span><a name="line.221"></a>
-<span class="sourceLineNo">222</span>  /**<a name="line.222"></a>
-<span class="sourceLineNo">223</span>   * @return heap memory manager instance<a name="line.223"></a>
-<span class="sourceLineNo">224</span>   */<a name="line.224"></a>
-<span class="sourceLineNo">225</span>  HeapMemoryManager getHeapMemoryManager();<a name="line.225"></a>
-<span class="sourceLineNo">226</span><a name="line.226"></a>
-<span class="sourceLineNo">227</span>  /**<a name="line.227"></a>
-<span class="sourceLineNo">228</span>   * @return the max compaction pressure of all stores on this regionserver. The value should be<a name="line.228"></a>
-<span class="sourceLineNo">229</span>   *         greater than or equal to 0.0, and any value greater than 1.0 means we enter the<a name="line.229"></a>
-<span class="sourceLineNo">230</span>   *         emergency state that some stores have too many store files.<a name="line.230"></a>
-<span class="sourceLineNo">231</span>   * @see org.apache.hadoop.hbase.regionserver.Store#getCompactionPressure()<a name="line.231"></a>
-<span class="sourceLineNo">232</span>   */<a name="line.232"></a>
-<span class="sourceLineNo">233</span>  double getCompactionPressure();<a name="line.233"></a>
-<span class="sourceLineNo">234</span>}<a name="line.234"></a>
+<span class="sourceLineNo">215</span>   * @return all the online tables in this RS<a name="line.215"></a>
+<span class="sourceLineNo">216</span>   */<a name="line.216"></a>
+<span class="sourceLineNo">217</span>  Set&lt;TableName&gt; getOnlineTables();<a name="line.217"></a>
+<span class="sourceLineNo">218</span><a name="line.218"></a>
+<span class="sourceLineNo">219</span><a name="line.219"></a>
+<span class="sourceLineNo">220</span>  /**<a name="line.220"></a>
+<span class="sourceLineNo">221</span>   * Registers a new protocol buffer {@link Service} subclass as a coprocessor endpoint to be<a name="line.221"></a>
+<span class="sourceLineNo">222</span>   * available for handling<a name="line.222"></a>
+<span class="sourceLineNo">223</span>   * @param service the {@code Service} subclass instance to expose as a coprocessor endpoint<a name="line.223"></a>
+<span class="sourceLineNo">224</span>   * @return {@code true} if the registration was successful, {@code false}<a name="line.224"></a>
+<span class="sourceLineNo">225</span>   */<a name="line.225"></a>
+<span class="sourceLineNo">226</span>  boolean registerService(Service service);<a name="line.226"></a>
+<span class="sourceLineNo">227</span><a name="line.227"></a>
+<span class="sourceLineNo">228</span>  /**<a name="line.228"></a>
+<span class="sourceLineNo">229</span>   * @return heap memory manager instance<a name="line.229"></a>
+<span class="sourceLineNo">230</span>   */<a name="line.230"></a>
+<span class="sourceLineNo">231</span>  HeapMemoryManager getHeapMemoryManager();<a name="line.231"></a>
+<span class="sourceLineNo">232</span><a name="line.232"></a>
+<span class="sourceLineNo">233</span>  /**<a name="line.233"></a>
+<span class="sourceLineNo">234</span>   * @return the max compaction pressure of all stores on this regionserver. The value should be<a name="line.234"></a>
+<span class="sourceLineNo">235</span>   *         greater than or equal to 0.0, and any value greater than 1.0 means we enter the<a name="line.235"></a>
+<span class="sourceLineNo">236</span>   *         emergency state that some stores have too many store files.<a name="line.236"></a>
+<span class="sourceLineNo">237</span>   * @see org.apache.hadoop.hbase.regionserver.Store#getCompactionPressure()<a name="line.237"></a>
+<span class="sourceLineNo">238</span>   */<a name="line.238"></a>
+<span class="sourceLineNo">239</span>  double getCompactionPressure();<a name="line.239"></a>
+<span class="sourceLineNo">240</span>}<a name="line.240"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase/blob/c0e3c35a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RegionServerServices.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RegionServerServices.html b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RegionServerServices.html
index a336a4a..629132a 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RegionServerServices.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RegionServerServices.html
@@ -63,183 +63,189 @@
 <span class="sourceLineNo">055</span>  WAL getWAL(HRegionInfo regionInfo) throws IOException;<a name="line.55"></a>
 <span class="sourceLineNo">056</span><a name="line.56"></a>
 <span class="sourceLineNo">057</span>  /**<a name="line.57"></a>
-<span class="sourceLineNo">058</span>   * @return Implementation of {@link CompactionRequestor} or null.<a name="line.58"></a>
-<span class="sourceLineNo">059</span>   */<a name="line.59"></a>
-<span class="sourceLineNo">060</span>  CompactionRequestor getCompactionRequester();<a name="line.60"></a>
-<span class="sourceLineNo">061</span><a name="line.61"></a>
-<span class="sourceLineNo">062</span>  /**<a name="line.62"></a>
-<span class="sourceLineNo">063</span>   * @return Implementation of {@link FlushRequester} or null.<a name="line.63"></a>
-<span class="sourceLineNo">064</span>   */<a name="line.64"></a>
-<span class="sourceLineNo">065</span>  FlushRequester getFlushRequester();<a name="line.65"></a>
-<span class="sourceLineNo">066</span><a name="line.66"></a>
-<span class="sourceLineNo">067</span>  /**<a name="line.67"></a>
-<span class="sourceLineNo">068</span>   * @return the RegionServerAccounting for this Region Server<a name="line.68"></a>
-<span class="sourceLineNo">069</span>   */<a name="line.69"></a>
-<span class="sourceLineNo">070</span>  RegionServerAccounting getRegionServerAccounting();<a name="line.70"></a>
-<span class="sourceLineNo">071</span><a name="line.71"></a>
-<span class="sourceLineNo">072</span>  /**<a name="line.72"></a>
-<span class="sourceLineNo">073</span>   * @return RegionServer's instance of {@link TableLockManager}<a name="line.73"></a>
-<span class="sourceLineNo">074</span>   */<a name="line.74"></a>
-<span class="sourceLineNo">075</span>  TableLockManager getTableLockManager();<a name="line.75"></a>
-<span class="sourceLineNo">076</span><a name="line.76"></a>
-<span class="sourceLineNo">077</span>  /**<a name="line.77"></a>
-<span class="sourceLineNo">078</span>   * @return RegionServer's instance of {@link RegionServerQuotaManager}<a name="line.78"></a>
-<span class="sourceLineNo">079</span>   */<a name="line.79"></a>
-<span class="sourceLineNo">080</span>  RegionServerQuotaManager getRegionServerQuotaManager();<a name="line.80"></a>
-<span class="sourceLineNo">081</span><a name="line.81"></a>
-<span class="sourceLineNo">082</span>  /**<a name="line.82"></a>
-<span class="sourceLineNo">083</span>   * Context for postOpenDeployTasks().<a name="line.83"></a>
-<span class="sourceLineNo">084</span>   */<a name="line.84"></a>
-<span class="sourceLineNo">085</span>  class PostOpenDeployContext {<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    private final Region region;<a name="line.86"></a>
-<span class="sourceLineNo">087</span>    private final long masterSystemTime;<a name="line.87"></a>
-<span class="sourceLineNo">088</span><a name="line.88"></a>
-<span class="sourceLineNo">089</span>    @InterfaceAudience.Private<a name="line.89"></a>
-<span class="sourceLineNo">090</span>    public PostOpenDeployContext(Region region, long masterSystemTime) {<a name="line.90"></a>
-<span class="sourceLineNo">091</span>      this.region = region;<a name="line.91"></a>
-<span class="sourceLineNo">092</span>      this.masterSystemTime = masterSystemTime;<a name="line.92"></a>
-<span class="sourceLineNo">093</span>    }<a name="line.93"></a>
-<span class="sourceLineNo">094</span>    public Region getRegion() {<a name="line.94"></a>
-<span class="sourceLineNo">095</span>      return region;<a name="line.95"></a>
-<span class="sourceLineNo">096</span>    }<a name="line.96"></a>
-<span class="sourceLineNo">097</span>    public long getMasterSystemTime() {<a name="line.97"></a>
-<span class="sourceLineNo">098</span>      return masterSystemTime;<a name="line.98"></a>
+<span class="sourceLineNo">058</span>   * Releases the dependency of this region to the WAL previously obtained from<a name="line.58"></a>
+<span class="sourceLineNo">059</span>   * {@link #getWAL(HRegionInfo)}.<a name="line.59"></a>
+<span class="sourceLineNo">060</span>   */<a name="line.60"></a>
+<span class="sourceLineNo">061</span>  void releaseWAL(HRegionInfo regionInfo, WAL wal) throws IOException;<a name="line.61"></a>
+<span class="sourceLineNo">062</span><a name="line.62"></a>
+<span class="sourceLineNo">063</span>  /**<a name="line.63"></a>
+<span class="sourceLineNo">064</span>   * @return Implementation of {@link CompactionRequestor} or null.<a name="line.64"></a>
+<span class="sourceLineNo">065</span>   */<a name="line.65"></a>
+<span class="sourceLineNo">066</span>  CompactionRequestor getCompactionRequester();<a name="line.66"></a>
+<span class="sourceLineNo">067</span><a name="line.67"></a>
+<span class="sourceLineNo">068</span>  /**<a name="line.68"></a>
+<span class="sourceLineNo">069</span>   * @return Implementation of {@link FlushRequester} or null.<a name="line.69"></a>
+<span class="sourceLineNo">070</span>   */<a name="line.70"></a>
+<span class="sourceLineNo">071</span>  FlushRequester getFlushRequester();<a name="line.71"></a>
+<span class="sourceLineNo">072</span><a name="line.72"></a>
+<span class="sourceLineNo">073</span>  /**<a name="line.73"></a>
+<span class="sourceLineNo">074</span>   * @return the RegionServerAccounting for this Region Server<a name="line.74"></a>
+<span class="sourceLineNo">075</span>   */<a name="line.75"></a>
+<span class="sourceLineNo">076</span>  RegionServerAccounting getRegionServerAccounting();<a name="line.76"></a>
+<span class="sourceLineNo">077</span><a name="line.77"></a>
+<span class="sourceLineNo">078</span>  /**<a name="line.78"></a>
+<span class="sourceLineNo">079</span>   * @return RegionServer's instance of {@link TableLockManager}<a name="line.79"></a>
+<span class="sourceLineNo">080</span>   */<a name="line.80"></a>
+<span class="sourceLineNo">081</span>  TableLockManager getTableLockManager();<a name="line.81"></a>
+<span class="sourceLineNo">082</span><a name="line.82"></a>
+<span class="sourceLineNo">083</span>  /**<a name="line.83"></a>
+<span class="sourceLineNo">084</span>   * @return RegionServer's instance of {@link RegionServerQuotaManager}<a name="line.84"></a>
+<span class="sourceLineNo">085</span>   */<a name="line.85"></a>
+<span class="sourceLineNo">086</span>  RegionServerQuotaManager getRegionServerQuotaManager();<a name="line.86"></a>
+<span class="sourceLineNo">087</span><a name="line.87"></a>
+<span class="sourceLineNo">088</span>  /**<a name="line.88"></a>
+<span class="sourceLineNo">089</span>   * Context for postOpenDeployTasks().<a name="line.89"></a>
+<span class="sourceLineNo">090</span>   */<a name="line.90"></a>
+<span class="sourceLineNo">091</span>  class PostOpenDeployContext {<a name="line.91"></a>
+<span class="sourceLineNo">092</span>    private final Region region;<a name="line.92"></a>
+<span class="sourceLineNo">093</span>    private final long masterSystemTime;<a name="line.93"></a>
+<span class="sourceLineNo">094</span><a name="line.94"></a>
+<span class="sourceLineNo">095</span>    @InterfaceAudience.Private<a name="line.95"></a>
+<span class="sourceLineNo">096</span>    public PostOpenDeployContext(Region region, long masterSystemTime) {<a name="line.96"></a>
+<span class="sourceLineNo">097</span>      this.region = region;<a name="line.97"></a>
+<span class="sourceLineNo">098</span>      this.masterSystemTime = masterSystemTime;<a name="line.98"></a>
 <span class="sourceLineNo">099</span>    }<a name="line.99"></a>
-<span class="sourceLineNo">100</span>  }<a name="line.100"></a>
-<span class="sourceLineNo">101</span><a name="line.101"></a>
-<span class="sourceLineNo">102</span>  /**<a name="line.102"></a>
-<span class="sourceLineNo">103</span>   * Tasks to perform after region open to complete deploy of region on<a name="line.103"></a>
-<span class="sourceLineNo">104</span>   * regionserver<a name="line.104"></a>
-<span class="sourceLineNo">105</span>   *<a name="line.105"></a>
-<span class="sourceLineNo">106</span>   * @param context the context<a name="line.106"></a>
-<span class="sourceLineNo">107</span>   * @throws KeeperException<a name="line.107"></a>
-<span class="sourceLineNo">108</span>   * @throws IOException<a name="line.108"></a>
-<span class="sourceLineNo">109</span>   */<a name="line.109"></a>
-<span class="sourceLineNo">110</span>  void postOpenDeployTasks(final PostOpenDeployContext context) throws KeeperException, IOException;<a name="line.110"></a>
-<span class="sourceLineNo">111</span><a name="line.111"></a>
-<span class="sourceLineNo">112</span>  /**<a name="line.112"></a>
-<span class="sourceLineNo">113</span>   * Tasks to perform after region open to complete deploy of region on<a name="line.113"></a>
-<span class="sourceLineNo">114</span>   * regionserver<a name="line.114"></a>
-<span class="sourceLineNo">115</span>   *<a name="line.115"></a>
-<span class="sourceLineNo">116</span>   * @param r Region to open.<a name="line.116"></a>
-<span class="sourceLineNo">117</span>   * @throws KeeperException<a name="line.117"></a>
-<span class="sourceLineNo">118</span>   * @throws IOException<a name="line.118"></a>
-<span class="sourceLineNo">119</span>   * @deprecated use {@link #postOpenDeployTasks(PostOpenDeployContext)}<a name="line.119"></a>
-<span class="sourceLineNo">120</span>   */<a name="line.120"></a>
-<span class="sourceLineNo">121</span>  @Deprecated<a name="line.121"></a>
-<span class="sourceLineNo">122</span>  void postOpenDeployTasks(final Region r) throws KeeperException, IOException;<a name="line.122"></a>
-<span class="sourceLineNo">123</span><a name="line.123"></a>
-<span class="sourceLineNo">124</span>  class RegionStateTransitionContext {<a name="line.124"></a>
-<span class="sourceLineNo">125</span>    private final TransitionCode code;<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    private final long openSeqNum;<a name="line.126"></a>
-<span class="sourceLineNo">127</span>    private final long masterSystemTime;<a name="line.127"></a>
-<span class="sourceLineNo">128</span>    private final HRegionInfo[] hris;<a name="line.128"></a>
+<span class="sourceLineNo">100</span>    public Region getRegion() {<a name="line.100"></a>
+<span class="sourceLineNo">101</span>      return region;<a name="line.101"></a>
+<span class="sourceLineNo">102</span>    }<a name="line.102"></a>
+<span class="sourceLineNo">103</span>    public long getMasterSystemTime() {<a name="line.103"></a>
+<span class="sourceLineNo">104</span>      return masterSystemTime;<a name="line.104"></a>
+<span class="sourceLineNo">105</span>    }<a name="line.105"></a>
+<span class="sourceLineNo">106</span>  }<a name="line.106"></a>
+<span class="sourceLineNo">107</span><a name="line.107"></a>
+<span class="sourceLineNo">108</span>  /**<a name="line.108"></a>
+<span class="sourceLineNo">109</span>   * Tasks to perform after region open to complete deploy of region on<a name="line.109"></a>
+<span class="sourceLineNo">110</span>   * regionserver<a name="line.110"></a>
+<span class="sourceLineNo">111</span>   *<a name="line.111"></a>
+<span class="sourceLineNo">112</span>   * @param context the context<a name="line.112"></a>
+<span class="sourceLineNo">113</span>   * @throws KeeperException<a name="line.113"></a>
+<span class="sourceLineNo">114</span>   * @throws IOException<a name="line.114"></a>
+<span class="sourceLineNo">115</span>   */<a name="line.115"></a>
+<span class="sourceLineNo">116</span>  void postOpenDeployTasks(final PostOpenDeployContext context) throws KeeperException, IOException;<a name="line.116"></a>
+<span class="sourceLineNo">117</span><a name="line.117"></a>
+<span class="sourceLineNo">118</span>  /**<a name="line.118"></a>
+<span class="sourceLineNo">119</span>   * Tasks to perform after region open to complete deploy of region on<a name="line.119"></a>
+<span class="sourceLineNo">120</span>   * regionserver<a name="line.120"></a>
+<span class="sourceLineNo">121</span>   *<a name="line.121"></a>
+<span class="sourceLineNo">122</span>   * @param r Region to open.<a name="line.122"></a>
+<span class="sourceLineNo">123</span>   * @throws KeeperException<a name="line.123"></a>
+<span class="sourceLineNo">124</span>   * @throws IOException<a name="line.124"></a>
+<span class="sourceLineNo">125</span>   * @deprecated use {@link #postOpenDeployTasks(PostOpenDeployContext)}<a name="line.125"></a>
+<span class="sourceLineNo">126</span>   */<a name="line.126"></a>
+<span class="sourceLineNo">127</span>  @Deprecated<a name="line.127"></a>
+<span class="sourceLineNo">128</span>  void postOpenDeployTasks(final Region r) throws KeeperException, IOException;<a name="line.128"></a>
 <span class="sourceLineNo">129</span><a name="line.129"></a>
-<span class="sourceLineNo">130</span>    @InterfaceAudience.Private<a name="line.130"></a>
-<span class="sourceLineNo">131</span>    public RegionStateTransitionContext(TransitionCode code, long openSeqNum, long masterSystemTime,<a name="line.131"></a>
-<span class="sourceLineNo">132</span>        HRegionInfo... hris) {<a name="line.132"></a>
-<span class="sourceLineNo">133</span>      this.code = code;<a name="line.133"></a>
-<span class="sourceLineNo">134</span>      this.openSeqNum = openSeqNum;<a name="line.134"></a>
-<span class="sourceLineNo">135</span>      this.masterSystemTime = masterSystemTime;<a name="line.135"></a>
-<span class="sourceLineNo">136</span>      this.hris = hris;<a name="line.136"></a>
-<span class="sourceLineNo">137</span>    }<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    public TransitionCode getCode() {<a name="line.138"></a>
-<span class="sourceLineNo">139</span>      return code;<a name="line.139"></a>
-<span class="sourceLineNo">140</span>    }<a name="line.140"></a>
-<span class="sourceLineNo">141</span>    public long getOpenSeqNum() {<a name="line.141"></a>
-<span class="sourceLineNo">142</span>      return openSeqNum;<a name="line.142"></a>
+<span class="sourceLineNo">130</span>  class RegionStateTransitionContext {<a name="line.130"></a>
+<span class="sourceLineNo">131</span>    private final TransitionCode code;<a name="line.131"></a>
+<span class="sourceLineNo">132</span>    private final long openSeqNum;<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    private final long masterSystemTime;<a name="line.133"></a>
+<span class="sourceLineNo">134</span>    private final HRegionInfo[] hris;<a name="line.134"></a>
+<span class="sourceLineNo">135</span><a name="line.135"></a>
+<span class="sourceLineNo">136</span>    @InterfaceAudience.Private<a name="line.136"></a>
+<span class="sourceLineNo">137</span>    public RegionStateTransitionContext(TransitionCode code, long openSeqNum, long masterSystemTime,<a name="line.137"></a>
+<span class="sourceLineNo">138</span>        HRegionInfo... hris) {<a name="line.138"></a>
+<span class="sourceLineNo">139</span>      this.code = code;<a name="line.139"></a>
+<span class="sourceLineNo">140</span>      this.openSeqNum = openSeqNum;<a name="line.140"></a>
+<span class="sourceLineNo">141</span>      this.masterSystemTime = masterSystemTime;<a name="line.141"></a>
+<span class="sourceLineNo">142</span>      this.hris = hris;<a name="line.142"></a>
 <span class="sourceLineNo">143</span>    }<a name="line.143"></a>
-<span class="sourceLineNo">144</span>    public long getMasterSystemTime() {<a name="line.144"></a>
-<span class="sourceLineNo">145</span>      return masterSystemTime;<a name="line.145"></a>
+<span class="sourceLineNo">144</span>    public TransitionCode getCode() {<a name="line.144"></a>
+<span class="sourceLineNo">145</span>      return code;<a name="line.145"></a>
 <span class="sourceLineNo">146</span>    }<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    public HRegionInfo[] getHris() {<a name="line.147"></a>
-<span class="sourceLineNo">148</span>      return hris;<a name="line.148"></a>
+<span class="sourceLineNo">147</span>    public long getOpenSeqNum() {<a name="line.147"></a>
+<span class="sourceLineNo">148</span>      return openSeqNum;<a name="line.148"></a>
 <span class="sourceLineNo">149</span>    }<a name="line.149"></a>
-<span class="sourceLineNo">150</span>  }<a name="line.150"></a>
-<span class="sourceLineNo">151</span><a name="line.151"></a>
-<span class="sourceLineNo">152</span>  /**<a name="line.152"></a>
-<span class="sourceLineNo">153</span>   * Notify master that a handler requests to change a region state<a name="line.153"></a>
-<span class="sourceLineNo">154</span>   */<a name="line.154"></a>
-<span class="sourceLineNo">155</span>  boolean reportRegionStateTransition(final RegionStateTransitionContext context);<a name="line.155"></a>
-<span class="sourceLineNo">156</span><a name="line.156"></a>
-<span class="sourceLineNo">157</span>  /**<a name="line.157"></a>
-<span class="sourceLineNo">158</span>   * Notify master that a handler requests to change a region state<a name="line.158"></a>
-<span class="sourceLineNo">159</span>   * @deprecated use {@link #reportRegionStateTransition(RegionStateTransitionContext)}<a name="line.159"></a>
+<span class="sourceLineNo">150</span>    public long getMasterSystemTime() {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>      return masterSystemTime;<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    }<a name="line.152"></a>
+<span class="sourceLineNo">153</span>    public HRegionInfo[] getHris() {<a name="line.153"></a>
+<span class="sourceLineNo">154</span>      return hris;<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    }<a name="line.155"></a>
+<span class="sourceLineNo">156</span>  }<a name="line.156"></a>
+<span class="sourceLineNo">157</span><a name="line.157"></a>
+<span class="sourceLineNo">158</span>  /**<a name="line.158"></a>
+<span class="sourceLineNo">159</span>   * Notify master that a handler requests to change a region state<a name="line.159"></a>
 <span class="sourceLineNo">160</span>   */<a name="line.160"></a>
-<span class="sourceLineNo">161</span>  @Deprecated<a name="line.161"></a>
-<span class="sourceLineNo">162</span>  boolean reportRegionStateTransition(TransitionCode code, long openSeqNum, HRegionInfo... hris);<a name="line.162"></a>
-<span class="sourceLineNo">163</span><a name="line.163"></a>
-<span class="sourceLineNo">164</span>  /**<a name="line.164"></a>
-<span class="sourceLineNo">165</span>   * Notify master that a handler requests to change a region state<a name="line.165"></a>
-<span class="sourceLineNo">166</span>   * @deprecated use {@link #reportRegionStateTransition(RegionStateTransitionContext)}<a name="line.166"></a>
-<span class="sourceLineNo">167</span>   */<a name="line.167"></a>
-<span class="sourceLineNo">168</span>  @Deprecated<a name="line.168"></a>
-<span class="sourceLineNo">169</span>  boolean reportRegionStateTransition(TransitionCode code, HRegionInfo... hris);<a name="line.169"></a>
-<span class="sourceLineNo">170</span><a name="line.170"></a>
-<span class="sourceLineNo">171</span>  /**<a name="line.171"></a>
-<span class="sourceLineNo">172</span>   * Returns a reference to the region server's RPC server<a name="line.172"></a>
+<span class="sourceLineNo">161</span>  boolean reportRegionStateTransition(final RegionStateTransitionContext context);<a name="line.161"></a>
+<span class="sourceLineNo">162</span><a name="line.162"></a>
+<span class="sourceLineNo">163</span>  /**<a name="line.163"></a>
+<span class="sourceLineNo">164</span>   * Notify master that a handler requests to change a region state<a name="line.164"></a>
+<span class="sourceLineNo">165</span>   * @deprecated use {@link #reportRegionStateTransition(RegionStateTransitionContext)}<a name="line.165"></a>
+<span class="sourceLineNo">166</span>   */<a name="line.166"></a>
+<span class="sourceLineNo">167</span>  @Deprecated<a name="line.167"></a>
+<span class="sourceLineNo">168</span>  boolean reportRegionStateTransition(TransitionCode code, long openSeqNum, HRegionInfo... hris);<a name="line.168"></a>
+<span class="sourceLineNo">169</span><a name="line.169"></a>
+<span class="sourceLineNo">170</span>  /**<a name="line.170"></a>
+<span class="sourceLineNo">171</span>   * Notify master that a handler requests to change a region state<a name="line.171"></a>
+<span class="sourceLineNo">172</span>   * @deprecated use {@link #reportRegionStateTransition(RegionStateTransitionContext)}<a name="line.172"></a>
 <span class="sourceLineNo">173</span>   */<a name="line.173"></a>
-<span class="sourceLineNo">174</span>  RpcServerInterface getRpcServer();<a name="line.174"></a>
-<span class="sourceLineNo">175</span><a name="line.175"></a>
-<span class="sourceLineNo">176</span>  /**<a name="line.176"></a>
-<span class="sourceLineNo">177</span>   * Get the regions that are currently being opened or closed in the RS<a name="line.177"></a>
-<span class="sourceLineNo">178</span>   * @return map of regions in transition in this RS<a name="line.178"></a>
+<span class="sourceLineNo">174</span>  @Deprecated<a name="line.174"></a>
+<span class="sourceLineNo">175</span>  boolean reportRegionStateTransition(TransitionCode code, HRegionInfo... hris);<a name="line.175"></a>
+<span class="sourceLineNo">176</span><a name="line.176"></a>
+<span class="sourceLineNo">177</span>  /**<a name="line.177"></a>
+<span class="sourceLineNo">178</span>   * Returns a reference to the region server's RPC server<a name="line.178"></a>
 <span class="sourceLineNo">179</span>   */<a name="line.179"></a>
-<span class="sourceLineNo">180</span>  ConcurrentMap&lt;byte[], Boolean&gt; getRegionsInTransitionInRS();<a name="line.180"></a>
+<span class="sourceLineNo">180</span>  RpcServerInterface getRpcServer();<a name="line.180"></a>
 <span class="sourceLineNo">181</span><a name="line.181"></a>
 <span class="sourceLineNo">182</span>  /**<a name="line.182"></a>
-<span class="sourceLineNo">183</span>   * @return Return the FileSystem object used by the regionserver<a name="line.183"></a>
-<span class="sourceLineNo">184</span>   */<a name="line.184"></a>
-<span class="sourceLineNo">185</span>  FileSystem getFileSystem();<a name="line.185"></a>
-<span class="sourceLineNo">186</span><a name="line.186"></a>
-<span class="sourceLineNo">187</span>  /**<a name="line.187"></a>
-<span class="sourceLineNo">188</span>   * @return The RegionServer's "Leases" service<a name="line.188"></a>
-<span class="sourceLineNo">189</span>   */<a name="line.189"></a>
-<span class="sourceLineNo">190</span>  Leases getLeases();<a name="line.190"></a>
-<span class="sourceLineNo">191</span><a name="line.191"></a>
-<span class="sourceLineNo">192</span>  /**<a name="line.192"></a>
-<span class="sourceLineNo">193</span>   * @return hbase executor service<a name="line.193"></a>
-<span class="sourceLineNo">194</span>   */<a name="line.194"></a>
-<span class="sourceLineNo">195</span>  ExecutorService getExecutorService();<a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span>  /**<a name="line.197"></a>
-<span class="sourceLineNo">198</span>   * @return set of recovering regions on the hosting region server<a name="line.198"></a>
-<span class="sourceLineNo">199</span>   */<a name="line.199"></a>
-<span class="sourceLineNo">200</span>  Map&lt;String, Region&gt; getRecoveringRegions();<a name="line.200"></a>
-<span class="sourceLineNo">201</span><a name="line.201"></a>
-<span class="sourceLineNo">202</span>  /**<a name="line.202"></a>
-<span class="sourceLineNo">203</span>   * Only required for "old" log replay; if it's removed, remove this.<a name="line.203"></a>
-<span class="sourceLineNo">204</span>   * @return The RegionServer's NonceManager<a name="line.204"></a>
+<span class="sourceLineNo">183</span>   * Get the regions that are currently being opened or closed in the RS<a name="line.183"></a>
+<span class="sourceLineNo">184</span>   * @return map of regions in transition in this RS<a name="line.184"></a>
+<span class="sourceLineNo">185</span>   */<a name="line.185"></a>
+<span class="sourceLineNo">186</span>  ConcurrentMap&lt;byte[], Boolean&gt; getRegionsInTransitionInRS();<a name="line.186"></a>
+<span class="sourceLineNo">187</span><a name="line.187"></a>
+<span class="sourceLineNo">188</span>  /**<a name="line.188"></a>
+<span class="sourceLineNo">189</span>   * @return Return the FileSystem object used by the regionserver<a name="line.189"></a>
+<span class="sourceLineNo">190</span>   */<a name="line.190"></a>
+<span class="sourceLineNo">191</span>  FileSystem getFileSystem();<a name="line.191"></a>
+<span class="sourceLineNo">192</span><a name="line.192"></a>
+<span class="sourceLineNo">193</span>  /**<a name="line.193"></a>
+<span class="sourceLineNo">194</span>   * @return The RegionServer's "Leases" service<a name="line.194"></a>
+<span class="sourceLineNo">195</span>   */<a name="line.195"></a>
+<span class="sourceLineNo">196</span>  Leases getLeases();<a name="line.196"></a>
+<span class="sourceLineNo">197</span><a name="line.197"></a>
+<span class="sourceLineNo">198</span>  /**<a name="line.198"></a>
+<span class="sourceLineNo">199</span>   * @return hbase executor service<a name="line.199"></a>
+<span class="sourceLineNo">200</span>   */<a name="line.200"></a>
+<span class="sourceLineNo">201</span>  ExecutorService getExecutorService();<a name="line.201"></a>
+<span class="sourceLineNo">202</span><a name="line.202"></a>
+<span class="sourceLineNo">203</span>  /**<a name="line.203"></a>
+<span class="sourceLineNo">204</span>   * @return set of recovering regions on the hosting region server<a name="line.204"></a>
 <span class="sourceLineNo">205</span>   */<a name="line.205"></a>
-<span class="sourceLineNo">206</span>  public ServerNonceManager getNonceManager();<a name="line.206"></a>
+<span class="sourceLineNo">206</span>  Map&lt;String, Region&gt; getRecoveringRegions();<a name="line.206"></a>
 <span class="sourceLineNo">207</span><a name="line.207"></a>
 <span class="sourceLineNo">208</span>  /**<a name="line.208"></a>
-<span class="sourceLineNo">209</span>   * @return all the online tables in this RS<a name="line.209"></a>
-<span class="sourceLineNo">210</span>   */<a name="line.210"></a>
-<span class="sourceLineNo">211</span>  Set&lt;TableName&gt; getOnlineTables();<a name="line.211"></a>
-<span class="sourceLineNo">212</span><a name="line.212"></a>
+<span class="sourceLineNo">209</span>   * Only required for "old" log replay; if it's removed, remove this.<a name="line.209"></a>
+<span class="sourceLineNo">210</span>   * @return The RegionServer's NonceManager<a name="line.210"></a>
+<span class="sourceLineNo">211</span>   */<a name="line.211"></a>
+<span class="sourceLineNo">212</span>  public ServerNonceManager getNonceManager();<a name="line.212"></a>
 <span class="sourceLineNo">213</span><a name="line.213"></a>
 <span class="sourceLineNo">214</span>  /**<a name="line.214"></a>
-<span class="sourceLineNo">215</span>   * Registers a new protocol buffer {@link Service} subclass as a coprocessor endpoint to be<a name="line.215"></a>
-<span class="sourceLineNo">216</span>   * available for handling<a name="line.216"></a>
-<span class="sourceLineNo">217</span>   * @param service the {@code Service} subclass instance to expose as a coprocessor endpoint<a name="line.217"></a>
-<span class="sourceLineNo">218</span>   * @return {@code true} if the registration was successful, {@code false}<a name="line.218"></a>
-<span class="sourceLineNo">219</span>   */<a name="line.219"></a>
-<span class="sourceLineNo">220</span>  boolean registerService(Service service);<a name="line.220"></a>
-<span class="sourceLineNo">221</span><a name="line.221"></a>
-<span class="sourceLineNo">222</span>  /**<a name="line.222"></a>
-<span class="sourceLineNo">223</span>   * @return heap memory manager instance<a name="line.223"></a>
-<span class="sourceLineNo">224</span>   */<a name="line.224"></a>
-<span class="sourceLineNo">225</span>  HeapMemoryManager getHeapMemoryManager();<a name="line.225"></a>
-<span class="sourceLineNo">226</span><a name="line.226"></a>
-<span class="sourceLineNo">227</span>  /**<a name="line.227"></a>
-<span class="sourceLineNo">228</span>   * @return the max compaction pressure of all stores on this regionserver. The value should be<a name="line.228"></a>
-<span class="sourceLineNo">229</span>   *         greater than or equal to 0.0, and any value greater than 1.0 means we enter the<a name="line.229"></a>
-<span class="sourceLineNo">230</span>   *         emergency state that some stores have too many store files.<a name="line.230"></a>
-<span class="sourceLineNo">231</span>   * @see org.apache.hadoop.hbase.regionserver.Store#getCompactionPressure()<a name="line.231"></a>
-<span class="sourceLineNo">232</span>   */<a name="line.232"></a>
-<span class="sourceLineNo">233</span>  double getCompactionPressure();<a name="line.233"></a>
-<span class="sourceLineNo">234</span>}<a name="line.234"></a>
+<span class="sourceLineNo">215</span>   * @return all the online tables in this RS<a name="line.215"></a>
+<span class="sourceLineNo">216</span>   */<a name="line.216"></a>
+<span class="sourceLineNo">217</span>  Set&lt;TableName&gt; getOnlineTables();<a name="line.217"></a>
+<span class="sourceLineNo">218</span><a name="line.218"></a>
+<span class="sourceLineNo">219</span><a name="line.219"></a>
+<span class="sourceLineNo">220</span>  /**<a name="line.220"></a>
+<span class="sourceLineNo">221</span>   * Registers a new protocol buffer {@link Service} subclass as a coprocessor endpoint to be<a name="line.221"></a>
+<span class="sourceLineNo">222</span>   * available for handling<a name="line.222"></a>
+<span class="sourceLineNo">223</span>   * @param service the {@code Service} subclass instance to expose as a coprocessor endpoint<a name="line.223"></a>
+<span class="sourceLineNo">224</span>   * @return {@code true} if the registration was successful, {@code false}<a name="line.224"></a>
+<span class="sourceLineNo">225</span>   */<a name="line.225"></a>
+<span class="sourceLineNo">226</span>  boolean registerService(Service service);<a name="line.226"></a>
+<span class="sourceLineNo">227</span><a name="line.227"></a>
+<span class="sourceLineNo">228</span>  /**<a name="line.228"></a>
+<span class="sourceLineNo">229</span>   * @return heap memory manager instance<a name="line.229"></a>
+<span class="sourceLineNo">230</span>   */<a name="line.230"></a>
+<span class="sourceLineNo">231</span>  HeapMemoryManager getHeapMemoryManager();<a name="line.231"></a>
+<span class="sourceLineNo">232</span><a name="line.232"></a>
+<span class="sourceLineNo">233</span>  /**<a name="line.233"></a>
+<span class="sourceLineNo">234</span>   * @return the max compaction pressure of all stores on this regionserver. The value should be<a name="line.234"></a>
+<span class="sourceLineNo">235</span>   *         greater than or equal to 0.0, and any value greater than 1.0 means we enter the<a name="line.235"></a>
+<span class="sourceLineNo">236</span>   *         emergency state that some stores have too many store files.<a name="line.236"></a>
+<span class="sourceLineNo">237</span>   * @see org.apache.hadoop.hbase.regionserver.Store#getCompactionPressure()<a name="line.237"></a>
+<span class="sourceLineNo">238</span>   */<a name="line.238"></a>
+<span class="sourceLineNo">239</span>  double getCompactionPressure();<a name="line.239"></a>
+<span class="sourceLineNo">240</span>}<a name="line.240"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase/blob/c0e3c35a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/handler/CloseMetaHandler.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/handler/CloseMetaHandler.html b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/handler/CloseMetaHandler.html
index 255df16..4adb390 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/handler/CloseMetaHandler.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/handler/CloseMetaHandler.html
@@ -27,25 +27,33 @@
 <span class="sourceLineNo">019</span>package org.apache.hadoop.hbase.regionserver.handler;<a name="line.19"></a>
 <span class="sourceLineNo">020</span><a name="line.20"></a>
 <span class="sourceLineNo">021</span>import org.apache.hadoop.hbase.classification.InterfaceAudience;<a name="line.21"></a>
-<span class="sourceLineNo">022</span>import org.apache.hadoop.hbase.HRegionInfo;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.hadoop.hbase.Server;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.executor.EventType;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.regionserver.RegionServerServices;<a name="line.25"></a>
-<span class="sourceLineNo">026</span><a name="line.26"></a>
-<span class="sourceLineNo">027</span>/**<a name="line.27"></a>
-<span class="sourceLineNo">028</span> * Handles closing of the meta region on a region server.<a name="line.28"></a>
-<span class="sourceLineNo">029</span> */<a name="line.29"></a>
-<span class="sourceLineNo">030</span>@InterfaceAudience.Private<a name="line.30"></a>
-<span class="sourceLineNo">031</span>public class CloseMetaHandler extends CloseRegionHandler {<a name="line.31"></a>
-<span class="sourceLineNo">032</span><a name="line.32"></a>
-<span class="sourceLineNo">033</span>  // Called when regionserver determines its to go down; not master orchestrated<a name="line.33"></a>
-<span class="sourceLineNo">034</span>  public CloseMetaHandler(final Server server,<a name="line.34"></a>
-<span class="sourceLineNo">035</span>      final RegionServerServices rsServices,<a name="line.35"></a>
-<span class="sourceLineNo">036</span>      final HRegionInfo regionInfo,<a name="line.36"></a>
-<span class="sourceLineNo">037</span>      final boolean abort) {<a name="line.37"></a>
-<span class="sourceLineNo">038</span>    super(server, rsServices, regionInfo, abort, EventType.M_RS_CLOSE_META, null);<a name="line.38"></a>
-<span class="sourceLineNo">039</span>  }<a name="line.39"></a>
-<span class="sourceLineNo">040</span>}<a name="line.40"></a>
+<span class="sourceLineNo">022</span><a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.io.IOException;<a name="line.23"></a>
+<span class="sourceLineNo">024</span><a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.HRegionInfo;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.Server;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.hadoop.hbase.executor.EventType;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.regionserver.RegionServerServices;<a name="line.28"></a>
+<span class="sourceLineNo">029</span><a name="line.29"></a>
+<span class="sourceLineNo">030</span>/**<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * Handles closing of the meta region on a region server.<a name="line.31"></a>
+<span class="sourceLineNo">032</span> */<a name="line.32"></a>
+<span class="sourceLineNo">033</span>@InterfaceAudience.Private<a name="line.33"></a>
+<span class="sourceLineNo">034</span>public class CloseMetaHandler extends CloseRegionHandler {<a name="line.34"></a>
+<span class="sourceLineNo">035</span><a name="line.35"></a>
+<span class="sourceLineNo">036</span>  // Called when regionserver determines its to go down; not master orchestrated<a name="line.36"></a>
+<span class="sourceLineNo">037</span>  public CloseMetaHandler(final Server server,<a name="line.37"></a>
+<span class="sourceLineNo">038</span>      final RegionServerServices rsServices,<a name="line.38"></a>
+<span class="sourceLineNo">039</span>      final HRegionInfo regionInfo,<a name="line.39"></a>
+<span class="sourceLineNo">040</span>      final boolean abort) {<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    super(server, rsServices, regionInfo, abort, EventType.M_RS_CLOSE_META, null);<a name="line.41"></a>
+<span class="sourceLineNo">042</span>  }<a name="line.42"></a>
+<span class="sourceLineNo">043</span><a name="line.43"></a>
+<span class="sourceLineNo">044</span>  @Override<a name="line.44"></a>
+<span class="sourceLineNo">045</span>  protected void releaseWALIfNeeded() throws IOException {<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    rsServices.releaseWAL(regionInfo, region.getWAL());<a name="line.46"></a>
+<span class="sourceLineNo">047</span>  }<a name="line.47"></a>
+<span class="sourceLineNo">048</span>}<a name="line.48"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase/blob/c0e3c35a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/handler/CloseRegionHandler.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/handler/CloseRegionHandler.html b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/handler/CloseRegionHandler.html
index d2787b1..1e0b0dc 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/handler/CloseRegionHandler.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/handler/CloseRegionHandler.html
@@ -52,88 +52,97 @@
 <span class="sourceLineNo">044</span>  // have a running queue of user regions to close?<a name="line.44"></a>
 <span class="sourceLineNo">045</span>  private static final Log LOG = LogFactory.getLog(CloseRegionHandler.class);<a name="line.45"></a>
 <span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span>  private final RegionServerServices rsServices;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>  private final HRegionInfo regionInfo;<a name="line.48"></a>
-<span class="sourceLineNo">049</span><a name="line.49"></a>
-<span class="sourceLineNo">050</span>  // If true, the hosting server is aborting.  Region close process is different<a name="line.50"></a>
-<span class="sourceLineNo">051</span>  // when we are aborting.<a name="line.51"></a>
-<span class="sourceLineNo">052</span>  private final boolean abort;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>  private ServerName destination;<a name="line.53"></a>
-<span class="sourceLineNo">054</span><a name="line.54"></a>
-<span class="sourceLineNo">055</span>  /**<a name="line.55"></a>
-<span class="sourceLineNo">056</span>   * This method used internally by the RegionServer to close out regions.<a name="line.56"></a>
-<span class="sourceLineNo">057</span>   * @param server<a name="line.57"></a>
-<span class="sourceLineNo">058</span>   * @param rsServices<a name="line.58"></a>
-<span class="sourceLineNo">059</span>   * @param regionInfo<a name="line.59"></a>
-<span class="sourceLineNo">060</span>   * @param abort If the regionserver is aborting.<a name="line.60"></a>
-<span class="sourceLineNo">061</span>   * @param destination<a name="line.61"></a>
-<span class="sourceLineNo">062</span>   */<a name="line.62"></a>
-<span class="sourceLineNo">063</span>  public CloseRegionHandler(final Server server,<a name="line.63"></a>
-<span class="sourceLineNo">064</span>      final RegionServerServices rsServices,<a name="line.64"></a>
-<span class="sourceLineNo">065</span>      final HRegionInfo regionInfo, final boolean abort,<a name="line.65"></a>
-<span class="sourceLineNo">066</span>      ServerName destination) {<a name="line.66"></a>
-<span class="sourceLineNo">067</span>    this(server, rsServices, regionInfo, abort,<a name="line.67"></a>
-<span class="sourceLineNo">068</span>      EventType.M_RS_CLOSE_REGION, destination);<a name="line.68"></a>
-<span class="sourceLineNo">069</span>  }<a name="line.69"></a>
-<span class="sourceLineNo">070</span><a name="line.70"></a>
-<span class="sourceLineNo">071</span>  protected CloseRegionHandler(final Server server,<a name="line.71"></a>
-<span class="sourceLineNo">072</span>      final RegionServerServices rsServices, HRegionInfo regionInfo,<a name="line.72"></a>
-<span class="sourceLineNo">073</span>      boolean abort, EventType eventType, ServerName destination) {<a name="line.73"></a>
-<span class="sourceLineNo">074</span>    super(server, eventType);<a name="line.74"></a>
-<span class="sourceLineNo">075</span>    this.server = server;<a name="line.75"></a>
-<span class="sourceLineNo">076</span>    this.rsServices = rsServices;<a name="line.76"></a>
-<span class="sourceLineNo">077</span>    this.regionInfo = regionInfo;<a name="line.77"></a>
-<span class="sourceLineNo">078</span>    this.abort = abort;<a name="line.78"></a>
-<span class="sourceLineNo">079</span>    this.destination = destination;<a name="line.79"></a>
-<span class="sourceLineNo">080</span>  }<a name="line.80"></a>
-<span class="sourceLineNo">081</span><a name="line.81"></a>
-<span class="sourceLineNo">082</span>  public HRegionInfo getRegionInfo() {<a name="line.82"></a>
-<span class="sourceLineNo">083</span>    return regionInfo;<a name="line.83"></a>
-<span class="sourceLineNo">084</span>  }<a name="line.84"></a>
-<span class="sourceLineNo">085</span><a name="line.85"></a>
-<span class="sourceLineNo">086</span>  @Override<a name="line.86"></a>
-<span class="sourceLineNo">087</span>  public void process() {<a name="line.87"></a>
-<span class="sourceLineNo">088</span>    try {<a name="line.88"></a>
-<span class="sourceLineNo">089</span>      String name = regionInfo.getRegionNameAsString();<a name="line.89"></a>
-<span class="sourceLineNo">090</span>      LOG.debug("Processing close of " + name);<a name="line.90"></a>
-<span class="sourceLineNo">091</span>      String encodedRegionName = regionInfo.getEncodedName();<a name="line.91"></a>
-<span class="sourceLineNo">092</span>      // Check that this region is being served here<a name="line.92"></a>
-<span class="sourceLineNo">093</span>      HRegion region = (HRegion)rsServices.getFromOnlineRegions(encodedRegionName);<a name="line.93"></a>
-<span class="sourceLineNo">094</span>      if (region == null) {<a name="line.94"></a>
-<span class="sourceLineNo">095</span>        LOG.warn("Received CLOSE for region " + name + " but currently not serving - ignoring");<a name="line.95"></a>
-<span class="sourceLineNo">096</span>        // TODO: do better than a simple warning<a name="line.96"></a>
-<span class="sourceLineNo">097</span>        return;<a name="line.97"></a>
-<span class="sourceLineNo">098</span>      }<a name="line.98"></a>
-<span class="sourceLineNo">099</span><a name="line.99"></a>
-<span class="sourceLineNo">100</span>      // Close the region<a name="line.100"></a>
-<span class="sourceLineNo">101</span>      try {<a name="line.101"></a>
-<span class="sourceLineNo">102</span>        if (region.close(abort) == null) {<a name="line.102"></a>
-<span class="sourceLineNo">103</span>          // This region got closed.  Most likely due to a split.<a name="line.103"></a>
-<span class="sourceLineNo">104</span>          // The split message will clean up the master state.<a name="line.104"></a>
-<span class="sourceLineNo">105</span>          LOG.warn("Can't close region: was already closed during close(): " +<a name="line.105"></a>
-<span class="sourceLineNo">106</span>            regionInfo.getRegionNameAsString());<a name="line.106"></a>
-<span class="sourceLineNo">107</span>          return;<a name="line.107"></a>
-<span class="sourceLineNo">108</span>        }<a name="line.108"></a>
-<span class="sourceLineNo">109</span>      } catch (IOException ioe) {<a name="line.109"></a>
-<span class="sourceLineNo">110</span>        // An IOException here indicates that we couldn't successfully flush the<a name="line.110"></a>
-<span class="sourceLineNo">111</span>        // memstore before closing. So, we need to abort the server and allow<a name="line.111"></a>
-<span class="sourceLineNo">112</span>        // the master to split our logs in order to recover the data.<a name="line.112"></a>
-<span class="sourceLineNo">113</span>        server.abort("Unrecoverable exception while closing region " +<a name="line.113"></a>
-<span class="sourceLineNo">114</span>          regionInfo.getRegionNameAsString() + ", still finishing close", ioe);<a name="line.114"></a>
-<span class="sourceLineNo">115</span>        throw new RuntimeException(ioe);<a name="line.115"></a>
-<span class="sourceLineNo">116</span>      }<a name="line.116"></a>
-<span class="sourceLineNo">117</span><a name="line.117"></a>
-<span class="sourceLineNo">118</span>      this.rsServices.removeFromOnlineRegions(region, destination);<a name="line.118"></a>
-<span class="sourceLineNo">119</span>      rsServices.reportRegionStateTransition(TransitionCode.CLOSED, regionInfo);<a name="line.119"></a>
-<span class="sourceLineNo">120</span><a name="line.120"></a>
-<span class="sourceLineNo">121</span>      // Done!  Region is closed on this RS<a name="line.121"></a>
-<span class="sourceLineNo">122</span>      LOG.debug("Closed " + region.getRegionInfo().getRegionNameAsString());<a name="line.122"></a>
-<span class="sourceLineNo">123</span>    } finally {<a name="line.123"></a>
-<span class="sourceLineNo">124</span>      this.rsServices.getRegionsInTransitionInRS().<a name="line.124"></a>
-<span class="sourceLineNo">125</span>        remove(this.regionInfo.getEncodedNameAsBytes(), Boolean.FALSE);<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    }<a name="line.126"></a>
-<span class="sourceLineNo">127</span>  }<a name="line.127"></a>
-<span class="sourceLineNo">128</span>}<a name="line.128"></a>
+<span class="sourceLineNo">047</span>  protected final RegionServerServices rsServices;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>  protected final HRegionInfo regionInfo;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>  protected HRegion region;<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>  // If true, the hosting server is aborting.  Region close process is different<a name="line.51"></a>
+<span class="sourceLineNo">052</span>  // when we are aborting.<a name="line.52"></a>
+<span class="sourceLineNo">053</span>  private final boolean abort;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>  private ServerName destination;<a name="line.54"></a>
+<span class="sourceLineNo">055</span><a name="line.55"></a>
+<span class="sourceLineNo">056</span>  /**<a name="line.56"></a>
+<span class="sourceLineNo">057</span>   * This method used internally by the RegionServer to close out regions.<a name="line.57"></a>
+<span class="sourceLineNo">058</span>   * @param server<a name="line.58"></a>
+<span class="sourceLineNo">059</span>   * @param rsServices<a name="line.59"></a>
+<span class="sourceLineNo">060</span>   * @param regionInfo<a name="line.60"></a>
+<span class="sourceLineNo">061</span>   * @param abort If the regionserver is aborting.<a name="line.61"></a>
+<span class="sourceLineNo">062</span>   * @param destination<a name="line.62"></a>
+<span class="sourceLineNo">063</span>   */<a name="line.63"></a>
+<span class="sourceLineNo">064</span>  public CloseRegionHandler(final Server server,<a name="line.64"></a>
+<span class="sourceLineNo">065</span>      final RegionServerServices rsServices,<a name="line.65"></a>
+<span class="sourceLineNo">066</span>      final HRegionInfo regionInfo, final boolean abort,<a name="line.66"></a>
+<span class="sourceLineNo">067</span>      ServerName destination) {<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    this(server, rsServices, regionInfo, abort,<a name="line.68"></a>
+<span class="sourceLineNo">069</span>      EventType.M_RS_CLOSE_REGION, destination);<a name="line.69"></a>
+<span class="sourceLineNo">070</span>  }<a name="line.70"></a>
+<span class="sourceLineNo">071</span><a name="line.71"></a>
+<span class="sourceLineNo">072</span>  protected CloseRegionHandler(final Server server,<a name="line.72"></a>
+<span class="sourceLineNo">073</span>      final RegionServerServices rsServices, HRegionInfo regionInfo,<a name="line.73"></a>
+<span class="sourceLineNo">074</span>      boolean abort, EventType eventType, ServerName destination) {<a name="line.74"></a>
+<span class="sourceLineNo">075</span>    super(server, eventType);<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    this.server = server;<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    this.rsServices = rsServices;<a name="line.77"></a>
+<span class="sourceLineNo">078</span>    this.regionInfo = regionInfo;<a name="line.78"></a>
+<span class="sourceLineNo">079</span>    this.abort = abort;<a name="line.79"></a>
+<span class="sourceLineNo">080</span>    this.destination = destination;<a name="line.80"></a>
+<span class="sourceLineNo">081</span>  }<a name="line.81"></a>
+<span class="sourceLineNo">082</span><a name="line.82"></a>
+<span class="sourceLineNo">083</span>  public HRegionInfo getRegionInfo() {<a name="line.83"></a>
+<span class="sourceLineNo">084</span>    return regionInfo;<a name="line.84"></a>
+<span class="sourceLineNo">085</span>  }<a name="line.85"></a>
+<span class="sourceLineNo">086</span><a name="line.86"></a>
+<span class="sourceLineNo">087</span>  @Override<a name="line.87"></a>
+<span class="sourceLineNo">088</span>  public void process() {<a name="line.88"></a>
+<span class="sourceLineNo">089</span>    try {<a name="line.89"></a>
+<span class="sourceLineNo">090</span>      String name = regionInfo.getRegionNameAsString();<a name="line.90"></a>
+<span class="sourceLineNo">091</span>      LOG.debug("Processing close of " + name);<a name="line.91"></a>
+<span class="sourceLineNo">092</span>      String encodedRegionName = regionInfo.getEncodedName();<a name="line.92"></a>
+<span class="sourceLineNo">093</span>      // Check that this region is being served here<a name="line.93"></a>
+<span class="sourceLineNo">094</span>      region = (HRegion)rsServices.getFromOnlineRegions(encodedRegionName);<a name="line.94"></a>
+<span class="sourceLineNo">095</span>      if (region == null) {<a name="line.95"></a>
+<span class="sourceLineNo">096</span>        LOG.warn("Received CLOSE for region " + name + " but currently not serving - ignoring");<a name="line.96"></a>
+<span class="sourceLineNo">097</span>        // TODO: do better than a simple warning<a name="line.97"></a>
+<span class="sourceLineNo">098</span>        return;<a name="line.98"></a>
+<span class="sourceLineNo">099</span>      }<a name="line.99"></a>
+<span class="sourceLineNo">100</span><a name="line.100"></a>
+<span class="sourceLineNo">101</span>      // Close the region<a name="line.101"></a>
+<span class="sourceLineNo">102</span>      try {<a name="line.102"></a>
+<span class="sourceLineNo">103</span>        if (region.close(abort) == null) {<a name="line.103"></a>
+<span class="sourceLineNo">104</span>          // This region got closed.  Most likely due to a split.<a name="line.104"></a>
+<span class="sourceLineNo">105</span>          // The split message will clean up the master state.<a name="line.105"></a>
+<span class="sourceLineNo">106</span>          LOG.warn("Can't close region: was already closed during close(): " +<a name="line.106"></a>
+<span class="sourceLineNo">107</span>            regionInfo.getRegionNameAsString());<a name="line.107"></a>
+<span class="sourceLineNo">108</span>          return;<a name="line.108"></a>
+<span class="sourceLineNo">109</span>        }<a name="line.109"></a>
+<span class="sourceLineNo">110</span><a name="line.110"></a>
+<span class="sourceLineNo">111</span>        if (!abort) {<a name="line.111"></a>
+<span class="sourceLineNo">112</span>          releaseWALIfNeeded();<a name="line.112"></a>
+<span class="sourceLineNo">113</span>        }<a name="line.113"></a>
+<span class="sourceLineNo">114</span>      } catch (IOException ioe) {<a name="line.114"></a>
+<span class="sourceLineNo">115</span>        // An IOException here indicates that we couldn't successfully flush the<a name="line.115"></a>
+<span class="sourceLineNo">116</span>        // memstore before closing. So, we need to abort the server and allow<a name="line.116"></a>
+<span class="sourceLineNo">117</span>        // the master to split our logs in order to recover the data.<a name="line.117"></a>
+<span class="sourceLineNo">118</span>        server.abort("Unrecoverable exception while closing region " +<a name="line.118"></a>
+<span class="sourceLineNo">119</span>          regionInfo.getRegionNameAsString() + ", still finishing close", ioe);<a name="line.119"></a>
+<span class="sourceLineNo">120</span>        throw new RuntimeException(ioe);<a name="line.120"></a>
+<span class="sourceLineNo">121</span>      }<a name="line.121"></a>
+<span class="sourceLineNo">122</span><a name="line.122"></a>
+<span class="sourceLineNo">123</span>      this.rsServices.removeFromOnlineRegions(region, destination);<a name="line.123"></a>
+<span class="sourceLineNo">124</span>      rsServices.reportRegionStateTransition(TransitionCode.CLOSED, regionInfo);<a name="line.124"></a>
+<span class="sourceLineNo">125</span><a name="line.125"></a>
+<span class="sourceLineNo">126</span>      // Done!  Region is closed on this RS<a name="line.126"></a>
+<span class="sourceLineNo">127</span>      LOG.debug("Closed " + region.getRegionInfo().getRegionNameAsString());<a name="line.127"></a>
+<span class="sourceLineNo">128</span>    } finally {<a name="line.128"></a>
+<span class="sourceLineNo">129</span>      this.rsServices.getRegionsInTransitionInRS().<a name="line.129"></a>
+<span class="sourceLineNo">130</span>        remove(this.regionInfo.getEncodedNameAsBytes(), Boolean.FALSE);<a name="line.130"></a>
+<span class="sourceLineNo">131</span>    }<a name="line.131"></a>
+<span class="sourceLineNo">132</span>  }<a name="line.132"></a>
+<span class="sourceLineNo">133</span><a name="line.133"></a>
+<span class="sourceLineNo">134</span>  protected void releaseWALIfNeeded() throws IOException {<a name="line.134"></a>
+<span class="sourceLineNo">135</span>    // release the WAL if needed. Only meta does this for now.<a name="line.135"></a>
+<span class="sourceLineNo">136</span>  }<a name="line.136"></a>
+<span class="sourceLineNo">137</span>}<a name="line.137"></a>
 
 
 


Mime
View raw message