Skip to content

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

@sonarqubecloud
Copy link

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