Uh oh!
There was an error while loading. Please reload this page.
HBASE-28845 table level wal appendSize and replication source metrics… - #6259
HBASE-28845 table level wal appendSize and replication source metrics…#6259terrytlu wants to merge 1 commit into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
baf8457 to
3058da9Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
3058da9 to
fb25735Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
fb25735 to
c96894cCompare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
… not correctly shown in /jmx response xx
c96894c to
4bbf647CompareApache-HBase
commented
Sep 23, 2024
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Sep 23, 2024
🎊 +1 overall
This message was automatically generated. |
| return qualifierAsString; | ||
| } | ||
| public String getMetricPrefixTableName() { |
There was a problem hiding this comment.
TableName is IA.Public so we'd better not add new method unless you are sure it is useful for everyone.
| // Ideally putIfAbsent is atomic and we don't need a branch check but we still do it to avoid | ||
| // expensive string construction for every append. | ||
| String metricsKey = String.format("%s.%s", tableName, APPEND_SIZE); | ||
| String metricsKey = String.format("%s.%s", tableName.getMetricPrefixTableName(), APPEND_SIZE); |
There was a problem hiding this comment.
So the problem here is that, if we have ':' in th table name, it can not be displayed in jmx?
But this is still a breaking change... do we have other ways to obtain the metrics beside jmx? Do these ways also require that there is no ':' in the metrics name?
There was a problem hiding this comment.
Sorry for the late reply, I tried jmxterm tool, found we could get this metric correctly 😂 ...
Also found this issue already fixed https://issues.apache.org/jira/browse/HBASE-26745, I will close this issue as it is duplicated and already fixed by HBASE-26745.
Found 2 metrics did not display in the /jmx http interface response, table level wal appendSize and table level replication source.
I suspect it's because the metric name contains a colon :

after modify the table name string to "Namespace_$namespace_table_$table, the metric really display correctly in the /jmx response