Alexey Serbin has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/17725 )

Change subject: KUDU-3204: Add a metric for amount of available space
......................................................................


Patch Set 16: Code-Review+1

(4 comments)

http://gerrit.cloudera.org:8080/#/c/17725/16/src/kudu/server/server_base.h
File src/kudu/server/server_base.h:

http://gerrit.cloudera.org:8080/#/c/17725/16/src/kudu/server/server_base.h@269
PS16, Line 269: mutable
nit: I guess 'mutable' isn't needed here since the methods which acquire the 
lock aren't marked 'const'


http://gerrit.cloudera.org:8080/#/c/17725/16/src/kudu/server/server_base.h@271
PS16, Line 271: it's important that this is the first member to be destructed
style: to keep this comment easier to follow in the future modifications, 
please move the declaration of the two RefreshXxx() methods below to line 254?


http://gerrit.cloudera.org:8080/#/c/17725/16/src/kudu/server/server_base.h@275
PS16, Line 275:   DISALLOW_COPY_AND_ASSIGN(ServerBase);
nit: for better readability, prefer to keep this in the very end of the class


http://gerrit.cloudera.org:8080/#/c/17725/14/src/kudu/server/server_base.h
File src/kudu/server/server_base.h:

http://gerrit.cloudera.org:8080/#/c/17725/14/src/kudu/server/server_base.h@195
PS14, Line 195:
              :   int64_t wal_dir_available_space_;
              :   int64_t data_dirs_available_space_;
              :   MonoTime wal_dir_space_last_check_;
Why not to move this into the private section to be along with the 'lock_' 
member field?  If these are guarded by 'lock_', then it would be strange to 
expose those to the descendant classes allowing access without acquiring the 
lock?



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I58a7419847d080498aaf431d1dab098e1af71ad0
Gerrit-Change-Number: 17725
Gerrit-PatchSet: 16
Gerrit-Owner: Abhishek Chennaka <[email protected]>
Gerrit-Reviewer: Abhishek Chennaka <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Attila Bukor <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Fri, 27 Aug 2021 15:51:04 +0000
Gerrit-HasComments: Yes

Reply via email to