hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [15/49] hbase-site git commit: Published site at 82d554e3783372cc6b05489452c815b57c06f6cd.
Date Fri, 16 Jun 2017 15:00:41 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/cd7ae54c/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/HStore.StoreFlusherImpl.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/HStore.StoreFlusherImpl.html
b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/HStore.StoreFlusherImpl.html
index 4262d4d..6c614c0 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/HStore.StoreFlusherImpl.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/HStore.StoreFlusherImpl.html
@@ -1452,7 +1452,7 @@
 <span class="sourceLineNo">1444</span>    StringBuilder message = new StringBuilder(<a
name="line.1444"></a>
 <span class="sourceLineNo">1445</span>      "Completed" + (cr.isMajor() ? " major"
: "") + " compaction of "<a name="line.1445"></a>
 <span class="sourceLineNo">1446</span>      + cr.getFiles().size() + (cr.isAllFiles()
? " (all)" : "") + " file(s) in "<a name="line.1446"></a>
-<span class="sourceLineNo">1447</span>      + this + " of " + this.getRegionInfo().getRegionNameAsString()
+ " into ");<a name="line.1447"></a>
+<span class="sourceLineNo">1447</span>      + this + " of " + this.getRegionInfo().getShortNameToLog()
+ " into ");<a name="line.1447"></a>
 <span class="sourceLineNo">1448</span>    if (sfs.isEmpty()) {<a name="line.1448"></a>
 <span class="sourceLineNo">1449</span>      message.append("none, ");<a name="line.1449"></a>
 <span class="sourceLineNo">1450</span>    } else {<a name="line.1450"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/cd7ae54c/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/HStore.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/HStore.html b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/HStore.html
index 4262d4d..6c614c0 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/HStore.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/HStore.html
@@ -1452,7 +1452,7 @@
 <span class="sourceLineNo">1444</span>    StringBuilder message = new StringBuilder(<a
name="line.1444"></a>
 <span class="sourceLineNo">1445</span>      "Completed" + (cr.isMajor() ? " major"
: "") + " compaction of "<a name="line.1445"></a>
 <span class="sourceLineNo">1446</span>      + cr.getFiles().size() + (cr.isAllFiles()
? " (all)" : "") + " file(s) in "<a name="line.1446"></a>
-<span class="sourceLineNo">1447</span>      + this + " of " + this.getRegionInfo().getRegionNameAsString()
+ " into ");<a name="line.1447"></a>
+<span class="sourceLineNo">1447</span>      + this + " of " + this.getRegionInfo().getShortNameToLog()
+ " into ");<a name="line.1447"></a>
 <span class="sourceLineNo">1448</span>    if (sfs.isEmpty()) {<a name="line.1448"></a>
 <span class="sourceLineNo">1449</span>      message.append("none, ");<a name="line.1449"></a>
 <span class="sourceLineNo">1450</span>    } else {<a name="line.1450"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/cd7ae54c/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/IncreasingToUpperBoundRegionSplitPolicy.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/IncreasingToUpperBoundRegionSplitPolicy.html
b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/IncreasingToUpperBoundRegionSplitPolicy.html
index 9698e93..c8333b2 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/IncreasingToUpperBoundRegionSplitPolicy.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/IncreasingToUpperBoundRegionSplitPolicy.html
@@ -35,106 +35,108 @@
 <span class="sourceLineNo">027</span>import org.apache.hadoop.hbase.HTableDescriptor;<a
name="line.27"></a>
 <span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.TableName;<a
name="line.28"></a>
 <span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.classification.InterfaceAudience;<a
name="line.29"></a>
-<span class="sourceLineNo">030</span><a name="line.30"></a>
-<span class="sourceLineNo">031</span>/**<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * Split size is the number of regions that
are on this server that all are<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * of the same table, cubed, times 2x the
region flush size OR the maximum<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * region split size, whichever is smaller.<a
name="line.34"></a>
-<span class="sourceLineNo">035</span> * &lt;p&gt;<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * For example, if the flush size is 128MB,
then after two flushes (256MB) we<a name="line.36"></a>
-<span class="sourceLineNo">037</span> * will split which will make two regions
that will split when their size is<a name="line.37"></a>
-<span class="sourceLineNo">038</span> * {@code 2^3 * 128MB*2 = 2048MB}.<a
name="line.38"></a>
-<span class="sourceLineNo">039</span> * &lt;p&gt;<a name="line.39"></a>
-<span class="sourceLineNo">040</span> * If one of these regions splits, then
there are three regions and now the<a name="line.40"></a>
-<span class="sourceLineNo">041</span> * split size is {@code 3^3 * 128MB*2 =
6912MB}, and so on until we reach the configured<a name="line.41"></a>
-<span class="sourceLineNo">042</span> * maximum file size and then from there
on out, we'll use that.<a name="line.42"></a>
-<span class="sourceLineNo">043</span> */<a name="line.43"></a>
-<span class="sourceLineNo">044</span>@InterfaceAudience.Private<a name="line.44"></a>
-<span class="sourceLineNo">045</span>public class IncreasingToUpperBoundRegionSplitPolicy
extends ConstantSizeRegionSplitPolicy {<a name="line.45"></a>
-<span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span>  private static final Log LOG = LogFactory.getLog(IncreasingToUpperBoundRegionSplitPolicy.class);<a
name="line.47"></a>
-<span class="sourceLineNo">048</span>  protected long initialSize;<a name="line.48"></a>
-<span class="sourceLineNo">049</span><a name="line.49"></a>
-<span class="sourceLineNo">050</span>  @Override<a name="line.50"></a>
-<span class="sourceLineNo">051</span>  protected void configureForRegion(HRegion
region) {<a name="line.51"></a>
-<span class="sourceLineNo">052</span>    super.configureForRegion(region);<a
name="line.52"></a>
-<span class="sourceLineNo">053</span>    Configuration conf = getConf();<a
name="line.53"></a>
-<span class="sourceLineNo">054</span>    initialSize = conf.getLong("hbase.increasing.policy.initial.size",
-1);<a name="line.54"></a>
-<span class="sourceLineNo">055</span>    if (initialSize &gt; 0) {<a name="line.55"></a>
-<span class="sourceLineNo">056</span>      return;<a name="line.56"></a>
-<span class="sourceLineNo">057</span>    }<a name="line.57"></a>
-<span class="sourceLineNo">058</span>    HTableDescriptor desc = region.getTableDesc();<a
name="line.58"></a>
-<span class="sourceLineNo">059</span>    if (desc != null) {<a name="line.59"></a>
-<span class="sourceLineNo">060</span>      initialSize = 2 * desc.getMemStoreFlushSize();<a
name="line.60"></a>
-<span class="sourceLineNo">061</span>    }<a name="line.61"></a>
-<span class="sourceLineNo">062</span>    if (initialSize &lt;= 0) {<a
name="line.62"></a>
-<span class="sourceLineNo">063</span>      initialSize = 2 * conf.getLong(HConstants.HREGION_MEMSTORE_FLUSH_SIZE,<a
name="line.63"></a>
-<span class="sourceLineNo">064</span>                                     HTableDescriptor.DEFAULT_MEMSTORE_FLUSH_SIZE);<a
name="line.64"></a>
-<span class="sourceLineNo">065</span>    }<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>  @Override<a name="line.68"></a>
-<span class="sourceLineNo">069</span>  protected boolean shouldSplit() {<a
name="line.69"></a>
-<span class="sourceLineNo">070</span>    boolean force = region.shouldForceSplit();<a
name="line.70"></a>
-<span class="sourceLineNo">071</span>    boolean foundABigStore = false;<a
name="line.71"></a>
-<span class="sourceLineNo">072</span>    // Get count of regions that have the
same common table as this.region<a name="line.72"></a>
-<span class="sourceLineNo">073</span>    int tableRegionsCount = getCountOfCommonTableRegions();<a
name="line.73"></a>
-<span class="sourceLineNo">074</span>    // Get size to check<a name="line.74"></a>
-<span class="sourceLineNo">075</span>    long sizeToCheck = getSizeToCheck(tableRegionsCount);<a
name="line.75"></a>
-<span class="sourceLineNo">076</span><a name="line.76"></a>
-<span class="sourceLineNo">077</span>    for (Store store : region.getStores())
{<a name="line.77"></a>
-<span class="sourceLineNo">078</span>      // If any of the stores is unable
to split (eg they contain reference files)<a name="line.78"></a>
-<span class="sourceLineNo">079</span>      // then don't split<a name="line.79"></a>
-<span class="sourceLineNo">080</span>      if (!store.canSplit()) {<a name="line.80"></a>
-<span class="sourceLineNo">081</span>        return false;<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>      // Mark if any store is big enough<a
name="line.84"></a>
-<span class="sourceLineNo">085</span>      long size = store.getSize();<a
name="line.85"></a>
-<span class="sourceLineNo">086</span>      if (size &gt; sizeToCheck) {<a
name="line.86"></a>
-<span class="sourceLineNo">087</span>        LOG.debug("ShouldSplit because "
+ store.getColumnFamilyName() + " size=" + size<a name="line.87"></a>
-<span class="sourceLineNo">088</span>                  + ", sizeToCheck=" + sizeToCheck
+ ", regionsWithCommonTable="<a name="line.88"></a>
-<span class="sourceLineNo">089</span>                  + tableRegionsCount);<a
name="line.89"></a>
-<span class="sourceLineNo">090</span>        foundABigStore = true;<a name="line.90"></a>
-<span class="sourceLineNo">091</span>      }<a name="line.91"></a>
-<span class="sourceLineNo">092</span>    }<a name="line.92"></a>
-<span class="sourceLineNo">093</span><a name="line.93"></a>
-<span class="sourceLineNo">094</span>    return foundABigStore | force;<a
name="line.94"></a>
-<span class="sourceLineNo">095</span>  }<a name="line.95"></a>
-<span class="sourceLineNo">096</span><a name="line.96"></a>
-<span class="sourceLineNo">097</span>  /**<a name="line.97"></a>
-<span class="sourceLineNo">098</span>   * @return Count of regions on this server
that share the table this.region<a name="line.98"></a>
-<span class="sourceLineNo">099</span>   * belongs to<a name="line.99"></a>
-<span class="sourceLineNo">100</span>   */<a name="line.100"></a>
-<span class="sourceLineNo">101</span>  private int getCountOfCommonTableRegions()
{<a name="line.101"></a>
-<span class="sourceLineNo">102</span>    RegionServerServices rss = region.getRegionServerServices();<a
name="line.102"></a>
-<span class="sourceLineNo">103</span>    // Can be null in tests<a name="line.103"></a>
-<span class="sourceLineNo">104</span>    if (rss == null) {<a name="line.104"></a>
-<span class="sourceLineNo">105</span>      return 0;<a name="line.105"></a>
-<span class="sourceLineNo">106</span>    }<a name="line.106"></a>
-<span class="sourceLineNo">107</span>    TableName tablename = region.getTableDesc().getTableName();<a
name="line.107"></a>
-<span class="sourceLineNo">108</span>    int tableRegionsCount = 0;<a name="line.108"></a>
-<span class="sourceLineNo">109</span>    try {<a name="line.109"></a>
-<span class="sourceLineNo">110</span>      List&lt;Region&gt; hri = rss.getOnlineRegions(tablename);<a
name="line.110"></a>
-<span class="sourceLineNo">111</span>      tableRegionsCount = hri == null ||
hri.isEmpty() ? 0 : hri.size();<a name="line.111"></a>
-<span class="sourceLineNo">112</span>    } catch (IOException e) {<a name="line.112"></a>
-<span class="sourceLineNo">113</span>      LOG.debug("Failed getOnlineRegions
" + tablename, e);<a name="line.113"></a>
-<span class="sourceLineNo">114</span>    }<a name="line.114"></a>
-<span class="sourceLineNo">115</span>    return tableRegionsCount;<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>  /**<a name="line.118"></a>
-<span class="sourceLineNo">119</span>   * @return Region max size or {@code count
of regions cubed * 2 * flushsize},<a name="line.119"></a>
-<span class="sourceLineNo">120</span>   * which ever is smaller; guard against
there being zero regions on this server.<a name="line.120"></a>
-<span class="sourceLineNo">121</span>   */<a name="line.121"></a>
-<span class="sourceLineNo">122</span>  protected long getSizeToCheck(final int
tableRegionsCount) {<a name="line.122"></a>
-<span class="sourceLineNo">123</span>    // safety check for 100 to avoid numerical
overflow in extreme cases<a name="line.123"></a>
-<span class="sourceLineNo">124</span>    return tableRegionsCount == 0 || tableRegionsCount
&gt; 100<a name="line.124"></a>
-<span class="sourceLineNo">125</span>               ? getDesiredMaxFileSize()<a
name="line.125"></a>
-<span class="sourceLineNo">126</span>               : Math.min(getDesiredMaxFileSize(),<a
name="line.126"></a>
-<span class="sourceLineNo">127</span>                          initialSize *
tableRegionsCount * tableRegionsCount * tableRegionsCount);<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">030</span>import org.apache.hadoop.hbase.procedure2.util.StringUtils;<a
name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>/**<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * Split size is the number of regions that
are on this server that all are<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * of the same table, cubed, times 2x the
region flush size OR the maximum<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * region split size, whichever is smaller.<a
name="line.35"></a>
+<span class="sourceLineNo">036</span> * &lt;p&gt;<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * For example, if the flush size is 128MB,
then after two flushes (256MB) we<a name="line.37"></a>
+<span class="sourceLineNo">038</span> * will split which will make two regions
that will split when their size is<a name="line.38"></a>
+<span class="sourceLineNo">039</span> * {@code 2^3 * 128MB*2 = 2048MB}.<a
name="line.39"></a>
+<span class="sourceLineNo">040</span> * &lt;p&gt;<a name="line.40"></a>
+<span class="sourceLineNo">041</span> * If one of these regions splits, then
there are three regions and now the<a name="line.41"></a>
+<span class="sourceLineNo">042</span> * split size is {@code 3^3 * 128MB*2 =
6912MB}, and so on until we reach the configured<a name="line.42"></a>
+<span class="sourceLineNo">043</span> * maximum file size and then from there
on out, we'll use that.<a name="line.43"></a>
+<span class="sourceLineNo">044</span> */<a name="line.44"></a>
+<span class="sourceLineNo">045</span>@InterfaceAudience.Private<a name="line.45"></a>
+<span class="sourceLineNo">046</span>public class IncreasingToUpperBoundRegionSplitPolicy
extends ConstantSizeRegionSplitPolicy {<a name="line.46"></a>
+<span class="sourceLineNo">047</span><a name="line.47"></a>
+<span class="sourceLineNo">048</span>  private static final Log LOG = LogFactory.getLog(IncreasingToUpperBoundRegionSplitPolicy.class);<a
name="line.48"></a>
+<span class="sourceLineNo">049</span>  protected long initialSize;<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>  @Override<a name="line.51"></a>
+<span class="sourceLineNo">052</span>  protected void configureForRegion(HRegion
region) {<a name="line.52"></a>
+<span class="sourceLineNo">053</span>    super.configureForRegion(region);<a
name="line.53"></a>
+<span class="sourceLineNo">054</span>    Configuration conf = getConf();<a
name="line.54"></a>
+<span class="sourceLineNo">055</span>    initialSize = conf.getLong("hbase.increasing.policy.initial.size",
-1);<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    if (initialSize &gt; 0) {<a name="line.56"></a>
+<span class="sourceLineNo">057</span>      return;<a name="line.57"></a>
+<span class="sourceLineNo">058</span>    }<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    HTableDescriptor desc = region.getTableDesc();<a
name="line.59"></a>
+<span class="sourceLineNo">060</span>    if (desc != null) {<a name="line.60"></a>
+<span class="sourceLineNo">061</span>      initialSize = 2 * desc.getMemStoreFlushSize();<a
name="line.61"></a>
+<span class="sourceLineNo">062</span>    }<a name="line.62"></a>
+<span class="sourceLineNo">063</span>    if (initialSize &lt;= 0) {<a
name="line.63"></a>
+<span class="sourceLineNo">064</span>      initialSize = 2 * conf.getLong(HConstants.HREGION_MEMSTORE_FLUSH_SIZE,<a
name="line.64"></a>
+<span class="sourceLineNo">065</span>                                     HTableDescriptor.DEFAULT_MEMSTORE_FLUSH_SIZE);<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><a name="line.68"></a>
+<span class="sourceLineNo">069</span>  @Override<a name="line.69"></a>
+<span class="sourceLineNo">070</span>  protected boolean shouldSplit() {<a
name="line.70"></a>
+<span class="sourceLineNo">071</span>    boolean force = region.shouldForceSplit();<a
name="line.71"></a>
+<span class="sourceLineNo">072</span>    boolean foundABigStore = false;<a
name="line.72"></a>
+<span class="sourceLineNo">073</span>    // Get count of regions that have the
same common table as this.region<a name="line.73"></a>
+<span class="sourceLineNo">074</span>    int tableRegionsCount = getCountOfCommonTableRegions();<a
name="line.74"></a>
+<span class="sourceLineNo">075</span>    // Get size to check<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    long sizeToCheck = getSizeToCheck(tableRegionsCount);<a
name="line.76"></a>
+<span class="sourceLineNo">077</span><a name="line.77"></a>
+<span class="sourceLineNo">078</span>    for (Store store : region.getStores())
{<a name="line.78"></a>
+<span class="sourceLineNo">079</span>      // If any of the stores is unable
to split (eg they contain reference files)<a name="line.79"></a>
+<span class="sourceLineNo">080</span>      // then don't split<a name="line.80"></a>
+<span class="sourceLineNo">081</span>      if (!store.canSplit()) {<a name="line.81"></a>
+<span class="sourceLineNo">082</span>        return false;<a name="line.82"></a>
+<span class="sourceLineNo">083</span>      }<a name="line.83"></a>
+<span class="sourceLineNo">084</span><a name="line.84"></a>
+<span class="sourceLineNo">085</span>      // Mark if any store is big enough<a
name="line.85"></a>
+<span class="sourceLineNo">086</span>      long size = store.getSize();<a
name="line.86"></a>
+<span class="sourceLineNo">087</span>      if (size &gt; sizeToCheck) {<a
name="line.87"></a>
+<span class="sourceLineNo">088</span>        LOG.debug("ShouldSplit because "
+ store.getColumnFamilyName() +<a name="line.88"></a>
+<span class="sourceLineNo">089</span>          " size=" + StringUtils.humanSize(size)
+<a name="line.89"></a>
+<span class="sourceLineNo">090</span>          ", sizeToCheck=" + StringUtils.humanSize(sizeToCheck)
+<a name="line.90"></a>
+<span class="sourceLineNo">091</span>          ", regionsWithCommonTable=" +
tableRegionsCount);<a name="line.91"></a>
+<span class="sourceLineNo">092</span>        foundABigStore = true;<a name="line.92"></a>
+<span class="sourceLineNo">093</span>      }<a name="line.93"></a>
+<span class="sourceLineNo">094</span>    }<a name="line.94"></a>
+<span class="sourceLineNo">095</span><a name="line.95"></a>
+<span class="sourceLineNo">096</span>    return foundABigStore | force;<a
name="line.96"></a>
+<span class="sourceLineNo">097</span>  }<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>   * @return Count of regions on this server
that share the table this.region<a name="line.100"></a>
+<span class="sourceLineNo">101</span>   * belongs to<a name="line.101"></a>
+<span class="sourceLineNo">102</span>   */<a name="line.102"></a>
+<span class="sourceLineNo">103</span>  private int getCountOfCommonTableRegions()
{<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    RegionServerServices rss = region.getRegionServerServices();<a
name="line.104"></a>
+<span class="sourceLineNo">105</span>    // Can be null in tests<a name="line.105"></a>
+<span class="sourceLineNo">106</span>    if (rss == null) {<a name="line.106"></a>
+<span class="sourceLineNo">107</span>      return 0;<a name="line.107"></a>
+<span class="sourceLineNo">108</span>    }<a name="line.108"></a>
+<span class="sourceLineNo">109</span>    TableName tablename = region.getTableDesc().getTableName();<a
name="line.109"></a>
+<span class="sourceLineNo">110</span>    int tableRegionsCount = 0;<a name="line.110"></a>
+<span class="sourceLineNo">111</span>    try {<a name="line.111"></a>
+<span class="sourceLineNo">112</span>      List&lt;Region&gt; hri = rss.getOnlineRegions(tablename);<a
name="line.112"></a>
+<span class="sourceLineNo">113</span>      tableRegionsCount = hri == null ||
hri.isEmpty() ? 0 : hri.size();<a name="line.113"></a>
+<span class="sourceLineNo">114</span>    } catch (IOException e) {<a name="line.114"></a>
+<span class="sourceLineNo">115</span>      LOG.debug("Failed getOnlineRegions
" + tablename, e);<a name="line.115"></a>
+<span class="sourceLineNo">116</span>    }<a name="line.116"></a>
+<span class="sourceLineNo">117</span>    return tableRegionsCount;<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>  /**<a name="line.120"></a>
+<span class="sourceLineNo">121</span>   * @return Region max size or {@code count
of regions cubed * 2 * flushsize},<a name="line.121"></a>
+<span class="sourceLineNo">122</span>   * which ever is smaller; guard against
there being zero regions on this server.<a name="line.122"></a>
+<span class="sourceLineNo">123</span>   */<a name="line.123"></a>
+<span class="sourceLineNo">124</span>  protected long getSizeToCheck(final int
tableRegionsCount) {<a name="line.124"></a>
+<span class="sourceLineNo">125</span>    // safety check for 100 to avoid numerical
overflow in extreme cases<a name="line.125"></a>
+<span class="sourceLineNo">126</span>    return tableRegionsCount == 0 || tableRegionsCount
&gt; 100<a name="line.126"></a>
+<span class="sourceLineNo">127</span>               ? getDesiredMaxFileSize()<a
name="line.127"></a>
+<span class="sourceLineNo">128</span>               : Math.min(getDesiredMaxFileSize(),<a
name="line.128"></a>
+<span class="sourceLineNo">129</span>                          initialSize *
tableRegionsCount * tableRegionsCount * tableRegionsCount);<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>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/cd7ae54c/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerCloseCallBack.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerCloseCallBack.html
b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerCloseCallBack.html
index ec9d7ba..2f3c0cd 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerCloseCallBack.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerCloseCallBack.html
@@ -2815,8 +2815,8 @@
 <span class="sourceLineNo">2807</span>    HRegionInfo hri = rsh.s.getRegionInfo();<a
name="line.2807"></a>
 <span class="sourceLineNo">2808</span>    // Yes, should be the same instance<a
name="line.2808"></a>
 <span class="sourceLineNo">2809</span>    if (regionServer.getOnlineRegion(hri.getRegionName())
!= rsh.r) {<a name="line.2809"></a>
-<span class="sourceLineNo">2810</span>      String msg = "Region was re-opened
after the scanner" + scannerName + " was created: "<a name="line.2810"></a>
-<span class="sourceLineNo">2811</span>          + hri.getRegionNameAsString();<a
name="line.2811"></a>
+<span class="sourceLineNo">2810</span>      String msg = "Region has changed
on the scanner " + scannerName + ": regionName="<a name="line.2810"></a>
+<span class="sourceLineNo">2811</span>          + hri.getRegionName() + ", scannerRegionName="
+ rsh.r;<a name="line.2811"></a>
 <span class="sourceLineNo">2812</span>      LOG.warn(msg + ", closing...");<a
name="line.2812"></a>
 <span class="sourceLineNo">2813</span>      scanners.remove(scannerName);<a
name="line.2813"></a>
 <span class="sourceLineNo">2814</span>      try {<a name="line.2814"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/cd7ae54c/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerHolder.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerHolder.html
b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerHolder.html
index ec9d7ba..2f3c0cd 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerHolder.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerHolder.html
@@ -2815,8 +2815,8 @@
 <span class="sourceLineNo">2807</span>    HRegionInfo hri = rsh.s.getRegionInfo();<a
name="line.2807"></a>
 <span class="sourceLineNo">2808</span>    // Yes, should be the same instance<a
name="line.2808"></a>
 <span class="sourceLineNo">2809</span>    if (regionServer.getOnlineRegion(hri.getRegionName())
!= rsh.r) {<a name="line.2809"></a>
-<span class="sourceLineNo">2810</span>      String msg = "Region was re-opened
after the scanner" + scannerName + " was created: "<a name="line.2810"></a>
-<span class="sourceLineNo">2811</span>          + hri.getRegionNameAsString();<a
name="line.2811"></a>
+<span class="sourceLineNo">2810</span>      String msg = "Region has changed
on the scanner " + scannerName + ": regionName="<a name="line.2810"></a>
+<span class="sourceLineNo">2811</span>          + hri.getRegionName() + ", scannerRegionName="
+ rsh.r;<a name="line.2811"></a>
 <span class="sourceLineNo">2812</span>      LOG.warn(msg + ", closing...");<a
name="line.2812"></a>
 <span class="sourceLineNo">2813</span>      scanners.remove(scannerName);<a
name="line.2813"></a>
 <span class="sourceLineNo">2814</span>      try {<a name="line.2814"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/cd7ae54c/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerShippedCallBack.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerShippedCallBack.html
b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerShippedCallBack.html
index ec9d7ba..2f3c0cd 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerShippedCallBack.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannerShippedCallBack.html
@@ -2815,8 +2815,8 @@
 <span class="sourceLineNo">2807</span>    HRegionInfo hri = rsh.s.getRegionInfo();<a
name="line.2807"></a>
 <span class="sourceLineNo">2808</span>    // Yes, should be the same instance<a
name="line.2808"></a>
 <span class="sourceLineNo">2809</span>    if (regionServer.getOnlineRegion(hri.getRegionName())
!= rsh.r) {<a name="line.2809"></a>
-<span class="sourceLineNo">2810</span>      String msg = "Region was re-opened
after the scanner" + scannerName + " was created: "<a name="line.2810"></a>
-<span class="sourceLineNo">2811</span>          + hri.getRegionNameAsString();<a
name="line.2811"></a>
+<span class="sourceLineNo">2810</span>      String msg = "Region has changed
on the scanner " + scannerName + ": regionName="<a name="line.2810"></a>
+<span class="sourceLineNo">2811</span>          + hri.getRegionName() + ", scannerRegionName="
+ rsh.r;<a name="line.2811"></a>
 <span class="sourceLineNo">2812</span>      LOG.warn(msg + ", closing...");<a
name="line.2812"></a>
 <span class="sourceLineNo">2813</span>      scanners.remove(scannerName);<a
name="line.2813"></a>
 <span class="sourceLineNo">2814</span>      try {<a name="line.2814"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/cd7ae54c/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannersCloseCallBack.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannersCloseCallBack.html
b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannersCloseCallBack.html
index ec9d7ba..2f3c0cd 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannersCloseCallBack.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.RegionScannersCloseCallBack.html
@@ -2815,8 +2815,8 @@
 <span class="sourceLineNo">2807</span>    HRegionInfo hri = rsh.s.getRegionInfo();<a
name="line.2807"></a>
 <span class="sourceLineNo">2808</span>    // Yes, should be the same instance<a
name="line.2808"></a>
 <span class="sourceLineNo">2809</span>    if (regionServer.getOnlineRegion(hri.getRegionName())
!= rsh.r) {<a name="line.2809"></a>
-<span class="sourceLineNo">2810</span>      String msg = "Region was re-opened
after the scanner" + scannerName + " was created: "<a name="line.2810"></a>
-<span class="sourceLineNo">2811</span>          + hri.getRegionNameAsString();<a
name="line.2811"></a>
+<span class="sourceLineNo">2810</span>      String msg = "Region has changed
on the scanner " + scannerName + ": regionName="<a name="line.2810"></a>
+<span class="sourceLineNo">2811</span>          + hri.getRegionName() + ", scannerRegionName="
+ rsh.r;<a name="line.2811"></a>
 <span class="sourceLineNo">2812</span>      LOG.warn(msg + ", closing...");<a
name="line.2812"></a>
 <span class="sourceLineNo">2813</span>      scanners.remove(scannerName);<a
name="line.2813"></a>
 <span class="sourceLineNo">2814</span>      try {<a name="line.2814"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/cd7ae54c/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.ScannerListener.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.ScannerListener.html
b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.ScannerListener.html
index ec9d7ba..2f3c0cd 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.ScannerListener.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.ScannerListener.html
@@ -2815,8 +2815,8 @@
 <span class="sourceLineNo">2807</span>    HRegionInfo hri = rsh.s.getRegionInfo();<a
name="line.2807"></a>
 <span class="sourceLineNo">2808</span>    // Yes, should be the same instance<a
name="line.2808"></a>
 <span class="sourceLineNo">2809</span>    if (regionServer.getOnlineRegion(hri.getRegionName())
!= rsh.r) {<a name="line.2809"></a>
-<span class="sourceLineNo">2810</span>      String msg = "Region was re-opened
after the scanner" + scannerName + " was created: "<a name="line.2810"></a>
-<span class="sourceLineNo">2811</span>          + hri.getRegionNameAsString();<a
name="line.2811"></a>
+<span class="sourceLineNo">2810</span>      String msg = "Region has changed
on the scanner " + scannerName + ": regionName="<a name="line.2810"></a>
+<span class="sourceLineNo">2811</span>          + hri.getRegionName() + ", scannerRegionName="
+ rsh.r;<a name="line.2811"></a>
 <span class="sourceLineNo">2812</span>      LOG.warn(msg + ", closing...");<a
name="line.2812"></a>
 <span class="sourceLineNo">2813</span>      scanners.remove(scannerName);<a
name="line.2813"></a>
 <span class="sourceLineNo">2814</span>      try {<a name="line.2814"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/cd7ae54c/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.html b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.html
index ec9d7ba..2f3c0cd 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/RSRpcServices.html
@@ -2815,8 +2815,8 @@
 <span class="sourceLineNo">2807</span>    HRegionInfo hri = rsh.s.getRegionInfo();<a
name="line.2807"></a>
 <span class="sourceLineNo">2808</span>    // Yes, should be the same instance<a
name="line.2808"></a>
 <span class="sourceLineNo">2809</span>    if (regionServer.getOnlineRegion(hri.getRegionName())
!= rsh.r) {<a name="line.2809"></a>
-<span class="sourceLineNo">2810</span>      String msg = "Region was re-opened
after the scanner" + scannerName + " was created: "<a name="line.2810"></a>
-<span class="sourceLineNo">2811</span>          + hri.getRegionNameAsString();<a
name="line.2811"></a>
+<span class="sourceLineNo">2810</span>      String msg = "Region has changed
on the scanner " + scannerName + ": regionName="<a name="line.2810"></a>
+<span class="sourceLineNo">2811</span>          + hri.getRegionName() + ", scannerRegionName="
+ rsh.r;<a name="line.2811"></a>
 <span class="sourceLineNo">2812</span>      LOG.warn(msg + ", closing...");<a
name="line.2812"></a>
 <span class="sourceLineNo">2813</span>      scanners.remove(scannerName);<a
name="line.2813"></a>
 <span class="sourceLineNo">2814</span>      try {<a name="line.2814"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/cd7ae54c/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/StoreFileInfo.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/StoreFileInfo.html b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/StoreFileInfo.html
index 7f8b453..9c4b68a 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/StoreFileInfo.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/regionserver/StoreFileInfo.html
@@ -459,8 +459,8 @@
 <span class="sourceLineNo">451</span>    // Tabledir is up two directories from
where Reference was written.<a name="line.451"></a>
 <span class="sourceLineNo">452</span>    Path tableDir = p.getParent().getParent().getParent();<a
name="line.452"></a>
 <span class="sourceLineNo">453</span>    String nameStrippedOfSuffix = m.group(1);<a
name="line.453"></a>
-<span class="sourceLineNo">454</span>    if (LOG.isDebugEnabled()) {<a name="line.454"></a>
-<span class="sourceLineNo">455</span>      LOG.debug("reference '" + p + "' to
region=" + otherRegion<a name="line.455"></a>
+<span class="sourceLineNo">454</span>    if (LOG.isTraceEnabled()) {<a name="line.454"></a>
+<span class="sourceLineNo">455</span>      LOG.trace("reference '" + p + "' to
region=" + otherRegion<a name="line.455"></a>
 <span class="sourceLineNo">456</span>        + " hfile=" + nameStrippedOfSuffix);<a
name="line.456"></a>
 <span class="sourceLineNo">457</span>    }<a name="line.457"></a>
 <span class="sourceLineNo">458</span><a name="line.458"></a>


Mime
View raw message