[
https://issues.apache.org/jira/browse/HBASE-20095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16388138#comment-16388138
]
Reid Chan commented on HBASE-20095:
-----------------------------------
bq. the second one will return true
second one will return false, since first one already updated the new size, the
snippet,
{code}
int newSize = calculatePoolSize(conf.get(CHORE_POOL_SIZE,
DEFAULT_CHORE_POOL_SIZE));
if (newSize == size) {
// the second one will enter this branch.
LOG.trace("Size from configuration is same as previous={}, no need to
update.", newSize);
return false;
}
size = newSize; // first one should update this size.
{code}
> Redesign single instance pool in CleanerChore
> ---------------------------------------------
>
> Key: HBASE-20095
> URL: https://issues.apache.org/jira/browse/HBASE-20095
> Project: HBase
> Issue Type: Improvement
> Reporter: Reid Chan
> Assignee: Reid Chan
> Priority: Critical
> Attachments: HBASE-20095.master.001.patch,
> HBASE-20095.master.002.patch, HBASE-20095.master.003.patch,
> HBASE-20095.master.004.patch, HBASE-20095.master.005.patch
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)