helifu has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/13426 )

Change subject: KUDU-2797: the master aggregates tablet metrics
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/13426/1/src/kudu/tserver/ts_tablet_manager.cc
File src/kudu/tserver/ts_tablet_manager.cc:

http://gerrit.cloudera.org:8080/#/c/13426/1/src/kudu/tserver/ts_tablet_manager.cc@1276
PS1, Line 1276: CountRows
It seems that the calls to "CountRows()" is not safe(OnDiskSize is safe!) even 
though we use "shared_tablet()" and hold a ref to the Tablet. Because:
* The flag "cfile_lazy_open" is true by default, which means the cfile is not 
really opened;
* The tablet data will be deleted while deleting tablet.
=================
In this, I think we have to open the cfile, parse the footer and get the info 
that we want and then close it to save memory and etc, but it will take time. 
Well, it is kind of stupid :(



--
To view, visit http://gerrit.cloudera.org:8080/13426
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I74406ab7cca7c22fda455c328b8ee9989a6b2d99
Gerrit-Change-Number: 13426
Gerrit-PatchSet: 1
Gerrit-Owner: helifu <hzhel...@corp.netease.com>
Gerrit-Reviewer: Adar Dembo <a...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: helifu <hzhel...@corp.netease.com>
Gerrit-Comment-Date: Mon, 27 May 2019 09:11:52 +0000
Gerrit-HasComments: Yes

Reply via email to