-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HPCC-30939 Suppress TLK jhtree stats. #18094
HPCC-30939 Suppress TLK jhtree stats. #18094
Conversation
c848f18
to
eeeda52
Compare
@ghalliday - left in draft form for now, and as 4 commits. Please review/comment. |
@jakesmith Even though it is a draft PR it is worth giving the PR a good title in the correct format, otherwise it isn't linked to the jira. You should also fill in the check boxes - so it is a bit clearer what state the PR is in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. A couple of minor comments on naming.
system/jhtree/jhtree.cpp
Outdated
@@ -351,6 +351,8 @@ class jhtree_decl CKeyLevelManager : implements IKeyManager, public CInterface | |||
{ | |||
protected: | |||
KeyStatsCollector stats; | |||
KeyStatsCollector nullStats; | |||
KeyStatsCollector *conditionalStats = nullptr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conditionalStats isn't a great name - it begs the question what is it conditional all. Maybe activeStats or another variant.
system/jhtree/jhtree.cpp
Outdated
@@ -1042,6 +1041,28 @@ void CKeyStore::clearCacheEntry(const IFileIO *io) | |||
} | |||
} | |||
|
|||
// | |||
|
|||
static void noteCLSeeks(IContextLogger *ctx, unsigned lseeks, unsigned lscans, unsigned lwildseeks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trivial: Do these need CL in the name (I didn't immediately understand what it meant).
eeeda52
to
9b0b7ee
Compare
9b0b7ee
to
a74b3d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jakesmith please squash
Avoid conflating the jhtree stats from TLK contexts with stats. from regular index parts. Motivataion: the TLK is very different from other parts, and typically stays in memory, if the TLK jhtree stats are merged into the same report as regular index part stats, the results are misleading. Signed-off-by: Jake Smith <[email protected]>
a74b3d6
to
eb6567e
Compare
@ghalliday - squashed |
Avoid conflating the jhtree stats from TLK contexts with stats. from regular index parts.
Motivataion: the TLK is very different from other parts, and typically stays in memory,
if the TLK jhtree stats are merged into the same report as regular index part stats,
the results are misleading.
Type of change:
Checklist:
Smoketest:
Testing: