Skip to content

Conversation

@michaeljmarshall
Copy link
Member

@michaeljmarshall michaeljmarshall commented Nov 11, 2025

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 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.

@michaeljmarshall michaeljmarshall requested a review from a team November 11, 2025 23:07
@michaeljmarshall michaeljmarshall self-assigned this Nov 11, 2025
@github-actions
Copy link

github-actions bot commented Nov 11, 2025

Checklist before you submit for review

  • This PR adheres to the Definition of Done
  • Make sure there is a PR in the CNDB project updating the Converged Cassandra version
  • Use NoSpamLogger for log lines that may appear frequently in the logs
  • Verify test results on Butler
  • Test coverage for new/modified code is > 80%
  • Proper code formatting
  • Proper title for each commit staring with the project-issue number, like CNDB-1234
  • Each commit has a meaningful description
  • Each commit is not very long and contains related changes
  • Renames, moves and reformatting are in distinct commits
  • All new files should contain the DataStax copyright header instead of the Apache License one

Copy link

@ekaterinadimitrova2 ekaterinadimitrova2 left a 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

@ekaterinadimitrova2
Copy link

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.

Copy link

@ekaterinadimitrova2 ekaterinadimitrova2 left a 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?

@michaeljmarshall
Copy link
Member Author

@ekaterinadimitrova2
Copy link

ekaterinadimitrova2 commented Nov 12, 2025

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 main branch here

@sonarqubecloud
Copy link

@cassci-bot
Copy link

✔️ Build ds-cassandra-pr-gate/PR-2118 approved by Butler


Approved by Butler
See build details here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants