-
Notifications
You must be signed in to change notification settings - Fork 21
CNDB-15971: Only init ReadExecutionController's histogram when tracing on #2118
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
base: main
Are you sure you want to change the base?
Conversation
Checklist before you submit for review
|
ekaterinadimitrova2
left a comment
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.
Good catch! Nice to have some test as we mentioned in Slack. Let's see also what CI will say
|
The patch is ok on its own, we should decide whether we want the histogram at all, as mentioned. I do not have strong opinion. But I believe it is usage will be quite limited. |
ekaterinadimitrova2
left a comment
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.
Approved but pending merged on CNDB PR opened. I did not find any?
|
Here it is https://github.com/riptano/cndb/pull/15986 |
Thanks, I think you need to rebase this branch as CNDB is missing the latest committed changes in datastax/cassandra |
|
✔️ Build ds-cassandra-pr-gate/PR-2118 approved by ButlerApproved by Butler |



What is the issue
Fixes: https://github.com/riptano/cndb/issues/15971
CNDB PR: https://github.com/riptano/cndb/pull/15986
What does this PR fix and why was it fixed
In #800, we added a histogram to the
ReadExecutionControllerto track some metric, but it is only observed when tracing is enabled. I propose that instead of creating one and tracking for every query, we only do that when tracing is enabled.Perhaps we could remove the logic entirely, but this solution will likely take care of all performance concerns related to unnecessary allocations and unnecessary tracking when updating the histogram.