Andrew Wong has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18081 )

Change subject: [consensus] minor clean-up on LogCache
......................................................................


Patch Set 1:

(2 comments)

Thanks for the cleanup!

http://gerrit.cloudera.org:8080/#/c/18081/1/src/kudu/consensus/log_cache.h
File src/kudu/consensus/log_cache.h:

http://gerrit.cloudera.org:8080/#/c/18081/1/src/kudu/consensus/log_cache.h@176
PS1, Line 176: LogPrefixUnlocked
nit: why is this called *Unlocked? Do we need to hold a lock while calling it?


http://gerrit.cloudera.org:8080/#/c/18081/1/src/kudu/consensus/log_cache.cc
File src/kudu/consensus/log_cache.cc:

http://gerrit.cloudera.org:8080/#/c/18081/1/src/kudu/consensus/log_cache.cc@89
PS1, Line 89:       log_prefix_(Substitute("T $0 P $1: ", tablet_id_, 
local_uuid_)),
Looking around a bit, it seems like the log prefix is mostly logged in warnings 
an errors, not necessarily the hot path. Wondering if it's actually worth the 
additional memory required to store this.



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I48f60c44209e269eb6b00278c6e32d4398ef9a55
Gerrit-Change-Number: 18081
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Fri, 10 Dec 2021 08:50:10 +0000
Gerrit-HasComments: Yes

Reply via email to