[
https://issues.apache.org/jira/browse/HBASE-17002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15894775#comment-15894775
]
Ted Yu commented on HBASE-17002:
--------------------------------
{code}
+ String NUM_VIOLATING_TABLE_QUOTAS_NAME = "numTablesViolatingQuotas";
{code}
NUM_TABLE_VIOLATING_QUOTAS_NAME seems better name.
Similar suggestion for NUM_VIOLATING_NS_QUOTAS_NAME : move NS ahead of
violating.
hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/master/MetricsMasterQuotaSourceFactoryImpl.java
: for classes in hbase-hadoop2-compat module, annotation for audience should
be added.
{code}
+ tablesViolatingQuotasGauge =
getMetricsRegistry().newGauge(NUM_VIOLATING_TABLE_QUOTAS_NAME,
NUM_VIOLATING_TABLE_QUOTAS_DESC, 0L);
+ namespacesViolatingQuotasGauge =
getMetricsRegistry().newGauge(NUM_VIOLATING_NS_QUOTAS_NAME,
NUM_VIOLATING_NS_QUOTAS_DESC, 0L);
{code}
Wrap lone lines.
> [Master] Report quotas and active violations on Master UI and JMX metrics
> -------------------------------------------------------------------------
>
> Key: HBASE-17002
> URL: https://issues.apache.org/jira/browse/HBASE-17002
> Project: HBase
> Issue Type: Sub-task
> Components: master, UI
> Reporter: Josh Elser
> Assignee: Josh Elser
> Fix For: HBASE-16961
>
> Attachments: HBASE-17002.001.HBASE-16961.patch, TableQuotaDefined.png
>
>
> We should be able to view the Master UI and determine what quotas exist and
> the quotas that are in violation to easily confirm/deny the state of
> tables/namespaces.
> The JMX metrics from the Master should also include the list of
> tables/namespaces which have quotas whose violation policies are presently
> being enforced.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)