Skip to content
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

fix: some rocksdb properties are counted multiple times #2589

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

sryanyuan
Copy link
Contributor

Some rocksdb properties, such as num_snapshots/num_running_flushes/num_running_compactions, are read directly from DB stats. However, using GetAggregatedIntProperty can cause the property values to be counted multiple times, resulting in a final value that is the original value multiplied by the number of column families. This can be misleading when troubleshooting performance issues, especially when compared to the rocksdb configuration field 'max_background_jobs'.

Copy link

sonarcloud bot commented Oct 11, 2024

@torwig
Copy link
Contributor

torwig commented Oct 11, 2024

@sryanyuan Thank you for this fix.

Copy link
Member

@git-hulk git-hulk 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

@git-hulk git-hulk merged commit ff32f95 into apache:unstable Oct 11, 2024
32 checks passed
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