CNDB-15971: Only init ReadExecutionController's histogram when tracing on#2118
CNDB-15971: Only init ReadExecutionController's histogram when tracing on#2118michaeljmarshall merged 3 commits intomainfrom
Conversation
Checklist before you submit for review
|
ekaterinadimitrova2
left a comment
There was a problem hiding this comment.
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.
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 |
… when tracing on (#2118) Fixes: riptano/cndb#15971 CNDB PR: riptano/cndb#15986 In #800, we added a histogram to the `ReadExecutionController` to 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.
… when tracing on (#2118) Fixes: riptano/cndb#15971 CNDB PR: riptano/cndb#15986 In #800, we added a histogram to the `ReadExecutionController` to 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.
… when tracing on (#2118) Fixes: riptano/cndb#15971 CNDB PR: riptano/cndb#15986 In #800, we added a histogram to the `ReadExecutionController` to 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.
… when tracing on (#2118) Fixes: riptano/cndb#15971 CNDB PR: riptano/cndb#15986 In #800, we added a histogram to the `ReadExecutionController` to 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. (Rebase of commit 7723d2e)
… when tracing on (#2118) Fixes: riptano/cndb#15971 CNDB PR: riptano/cndb#15986 In #800, we added a histogram to the `ReadExecutionController` to 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. (Rebase of commit 7723d2e)
… when tracing on (#2118) Fixes: riptano/cndb#15971 CNDB PR: riptano/cndb#15986 In #800, we added a histogram to the `ReadExecutionController` to 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. (Rebase of commit 7723d2e)
… when tracing on (#2118) Fixes: riptano/cndb#15971 CNDB PR: riptano/cndb#15986 In #800, we added a histogram to the `ReadExecutionController` to 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. (Rebase of commit 7723d2e)
… when tracing on (#2118) Fixes: riptano/cndb#15971 CNDB PR: riptano/cndb#15986 In #800, we added a histogram to the `ReadExecutionController` to 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. (Rebase of commit 7723d2e)
… when tracing on (#2118) Fixes: riptano/cndb#15971 CNDB PR: riptano/cndb#15986 In #800, we added a histogram to the `ReadExecutionController` to 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. (Rebase of commit 7723d2e)
… when tracing on (#2118) Fixes: riptano/cndb#15971 CNDB PR: riptano/cndb#15986 In #800, we added a histogram to the `ReadExecutionController` to 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. (Rebase of commit 7723d2e)
… when tracing on (#2118) Fixes: riptano/cndb#15971 CNDB PR: riptano/cndb#15986 In #800, we added a histogram to the `ReadExecutionController` to 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. (Rebase of commit 7723d2e)
… when tracing on (#2118) Fixes: riptano/cndb#15971 CNDB PR: riptano/cndb#15986 In #800, we added a histogram to the `ReadExecutionController` to 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. (Rebase of commit 7723d2e)



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.