http://git-wip-us.apache.org/repos/asf/hbase-site/blob/6eb695c8/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 9e3d786..d217fed 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
@@ -96,13 +96,13 @@
 <span class="sourceLineNo">088</span>  @Override<a name="line.88"></a>
 <span class="sourceLineNo">089</span>  public void process() {<a 
name="line.89"></a>
 <span class="sourceLineNo">090</span>    try {<a name="line.90"></a>
-<span class="sourceLineNo">091</span>      String name = 
regionInfo.getRegionNameAsString();<a name="line.91"></a>
-<span class="sourceLineNo">092</span>      LOG.debug("Processing close of " + 
name);<a name="line.92"></a>
+<span class="sourceLineNo">091</span>      String name = 
regionInfo.getEncodedName();<a name="line.91"></a>
+<span class="sourceLineNo">092</span>      LOG.trace("Processing close of {}", 
name);<a name="line.92"></a>
 <span class="sourceLineNo">093</span>      String encodedRegionName = 
regionInfo.getEncodedName();<a name="line.93"></a>
 <span class="sourceLineNo">094</span>      // Check that this region is being 
served here<a name="line.94"></a>
 <span class="sourceLineNo">095</span>      HRegion region = 
(HRegion)rsServices.getRegion(encodedRegionName);<a name="line.95"></a>
 <span class="sourceLineNo">096</span>      if (region == null) {<a 
name="line.96"></a>
-<span class="sourceLineNo">097</span>        LOG.warn("Received CLOSE for 
region " + name + " but currently not serving - ignoring");<a 
name="line.97"></a>
+<span class="sourceLineNo">097</span>        LOG.warn("Received CLOSE for 
region {} but currently not serving - ignoring", name);<a name="line.97"></a>
 <span class="sourceLineNo">098</span>        // TODO: do better than a simple 
warning<a name="line.98"></a>
 <span class="sourceLineNo">099</span>        return;<a name="line.99"></a>
 <span class="sourceLineNo">100</span>      }<a name="line.100"></a>
@@ -112,31 +112,30 @@
 <span class="sourceLineNo">104</span>        if (region.close(abort) == null) 
{<a name="line.104"></a>
 <span class="sourceLineNo">105</span>          // This region got closed.  
Most likely due to a split.<a name="line.105"></a>
 <span class="sourceLineNo">106</span>          // The split message will clean 
up the master state.<a name="line.106"></a>
-<span class="sourceLineNo">107</span>          LOG.warn("Can't close region: 
was already closed during close(): " +<a name="line.107"></a>
-<span class="sourceLineNo">108</span>            name);<a name="line.108"></a>
-<span class="sourceLineNo">109</span>          return;<a name="line.109"></a>
-<span class="sourceLineNo">110</span>        }<a name="line.110"></a>
-<span class="sourceLineNo">111</span>      } catch (IOException ioe) {<a 
name="line.111"></a>
-<span class="sourceLineNo">112</span>        // An IOException here indicates 
that we couldn't successfully flush the<a name="line.112"></a>
-<span class="sourceLineNo">113</span>        // memstore before closing. So, 
we need to abort the server and allow<a name="line.113"></a>
-<span class="sourceLineNo">114</span>        // the master to split our logs 
in order to recover the data.<a name="line.114"></a>
-<span class="sourceLineNo">115</span>        server.abort("Unrecoverable 
exception while closing region " +<a name="line.115"></a>
-<span class="sourceLineNo">116</span>          
regionInfo.getRegionNameAsString() + ", still finishing close", ioe);<a 
name="line.116"></a>
-<span class="sourceLineNo">117</span>        throw new 
RuntimeException(ioe);<a name="line.117"></a>
-<span class="sourceLineNo">118</span>      }<a name="line.118"></a>
-<span class="sourceLineNo">119</span><a name="line.119"></a>
-<span class="sourceLineNo">120</span>      
this.rsServices.removeRegion(region, destination);<a name="line.120"></a>
-<span class="sourceLineNo">121</span>      
rsServices.reportRegionStateTransition(new 
RegionStateTransitionContext(TransitionCode.CLOSED,<a name="line.121"></a>
-<span class="sourceLineNo">122</span>          HConstants.NO_SEQNUM, -1, 
regionInfo));<a name="line.122"></a>
-<span class="sourceLineNo">123</span><a name="line.123"></a>
-<span class="sourceLineNo">124</span>      // Done!  Region is closed on this 
RS<a name="line.124"></a>
-<span class="sourceLineNo">125</span>      LOG.debug("Closed " + 
region.getRegionInfo().getRegionNameAsString());<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    } finally {<a name="line.126"></a>
-<span class="sourceLineNo">127</span>      
this.rsServices.getRegionsInTransitionInRS().<a name="line.127"></a>
-<span class="sourceLineNo">128</span>        
remove(this.regionInfo.getEncodedNameAsBytes(), Boolean.FALSE);<a 
name="line.128"></a>
-<span class="sourceLineNo">129</span>    }<a name="line.129"></a>
-<span class="sourceLineNo">130</span>  }<a name="line.130"></a>
-<span class="sourceLineNo">131</span>}<a name="line.131"></a>
+<span class="sourceLineNo">107</span>          LOG.warn("Can't close region 
{}, was already closed during close()", name);<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>      } catch (IOException ioe) {<a 
name="line.110"></a>
+<span class="sourceLineNo">111</span>        // An IOException here indicates 
that we couldn't successfully flush the<a name="line.111"></a>
+<span class="sourceLineNo">112</span>        // memstore before closing. So, 
we need to abort the server and allow<a name="line.112"></a>
+<span class="sourceLineNo">113</span>        // the master to split our logs 
in order to recover the data.<a name="line.113"></a>
+<span class="sourceLineNo">114</span>        server.abort("Unrecoverable 
exception while closing region " +<a name="line.114"></a>
+<span class="sourceLineNo">115</span>          
regionInfo.getRegionNameAsString() + ", still finishing close", ioe);<a 
name="line.115"></a>
+<span class="sourceLineNo">116</span>        throw new 
RuntimeException(ioe);<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>      
this.rsServices.removeRegion(region, destination);<a name="line.119"></a>
+<span class="sourceLineNo">120</span>      
rsServices.reportRegionStateTransition(new 
RegionStateTransitionContext(TransitionCode.CLOSED,<a name="line.120"></a>
+<span class="sourceLineNo">121</span>          HConstants.NO_SEQNUM, -1, 
regionInfo));<a name="line.121"></a>
+<span class="sourceLineNo">122</span><a name="line.122"></a>
+<span class="sourceLineNo">123</span>      // Done!  Region is closed on this 
RS<a name="line.123"></a>
+<span class="sourceLineNo">124</span>      LOG.debug("Closed " + 
region.getRegionInfo().getRegionNameAsString());<a name="line.124"></a>
+<span class="sourceLineNo">125</span>    } finally {<a name="line.125"></a>
+<span class="sourceLineNo">126</span>      
this.rsServices.getRegionsInTransitionInRS().<a name="line.126"></a>
+<span class="sourceLineNo">127</span>        
remove(this.regionInfo.getEncodedNameAsBytes(), Boolean.FALSE);<a 
name="line.127"></a>
+<span class="sourceLineNo">128</span>    }<a name="line.128"></a>
+<span class="sourceLineNo">129</span>  }<a name="line.129"></a>
+<span class="sourceLineNo">130</span>}<a name="line.130"></a>
 
 
 

Reply via email to