helifu has uploaded this change for review. (
http://gerrit.cloudera.org:8080/14601
Change subject: KUDU-2986 p2: hide the live row count of table metrics
......................................................................
KUDU-2986 p2: hide the live row count of table metrics
It's easier to hide the 'live row count' metric than to return
an invalid value('N/A') in the master's Web UI while there is
any tablet which doesn't support live row count. And this is
consistent with tserver at the same time.
http://master:8051/metrics?ids=d52a0657c2374b7c8d108196f399d74b
{
"type": "table",
"id": "36c935088fb443139de80c274115170b",
"attributes": {
"table_name": "testtable"
},
"metrics": [
{
"name": "on_disk_size",
"value": 0
}
]
}
Change-Id: I4c7ac5ca7e8ce9dcc37035a7bc46ca69060d6533
---
M src/kudu/master/catalog_manager.cc
M src/kudu/master/master-test.cc
M src/kudu/master/table_metrics.cc
M src/kudu/master/table_metrics.h
4 files changed, 39 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/01/14601/1
--
To view, visit http://gerrit.cloudera.org:8080/14601
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4c7ac5ca7e8ce9dcc37035a7bc46ca69060d6533
Gerrit-Change-Number: 14601
Gerrit-PatchSet: 1
Gerrit-Owner: helifu <[email protected]>