You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/02/17 15:52:41 UTC

[jira] [Commented] (HBASE-17478) Avoid sending FSUtilization reports to master when quota support is not enabled

    [ https://issues.apache.org/jira/browse/HBASE-17478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15872011#comment-15872011 ] 

Ted Yu commented on HBASE-17478:
--------------------------------

{code}
541	    if (null == regionSizes) {
542	      return new HashMap<>();
{code}
You can wrap Collections.unmodifiableMap() around an empty map and use it as singleton.
This way you don't need to create map every time.

> Avoid sending FSUtilization reports to master when quota support is not enabled
> -------------------------------------------------------------------------------
>
>                 Key: HBASE-17478
>                 URL: https://issues.apache.org/jira/browse/HBASE-17478
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>            Priority: Trivial
>             Fix For: HBASE-16961
>
>         Attachments: HBASE-17478.001.HBASE-16961.patch, HBASE-17478.002.HBASE-16961.patch
>
>
> Trivial little change to make sure that the RS's do not send the filesystem utilization reports to the master when hbase.quota.enabled=false and, similarly, that the master gracefully handles these reports when the feature is not enabled.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)