MemStoreFlusher.getMemStoreLimit() doesn't honor defaultLimit
-------------------------------------------------------------

                 Key: HBASE-3934
                 URL: https://issues.apache.org/jira/browse/HBASE-3934
             Project: HBase
          Issue Type: Bug
            Reporter: Ted Yu


>From Lars George:
See below from MemStoreFlusher.java (trunk):
{code}
 static long getMemStoreLimit(final long max, final float limit,
     final float defaultLimit) {
   if (limit >= 0.9f || limit < 0.1f) {
     LOG.warn("Setting global memstore limit to default of " + defaultLimit +
       " because supplied value outside allowed range of 0.1 -> 0.9");
   }
   return (long)(max * limit);
 }
{code}
The log message says it is using defaultLimit, but the code is not.
Should we fix either?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to