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

Huge compaction after upgrading from 8.3.2 to 9.7.3 #13208

Closed
ahamlat opened this issue Dec 13, 2024 · 2 comments
Closed

Huge compaction after upgrading from 8.3.2 to 9.7.3 #13208

ahamlat opened this issue Dec 13, 2024 · 2 comments

Comments

@ahamlat
Copy link

ahamlat commented Dec 13, 2024

Hi team,
When upgrading our rocksdbjni lib from 8.3.2 to 9.7.3, we noticed a huge IO writes and reads for a pretty long time, depending on the size of the database. We've seen a range of 20 minutes to two hours period of high IO activity. Those IO are caused by a huge compaction that resulted in a different organization in the levels for each Column Family. Knowing that we're using the default configuration related to Leveled compaction, you can see below that when running 8.3.2 version, there is the expected distribution across different levels, but with 9.7.3, the levels 1,2 and 3 are empty

RocksDB 8.3.2
image

RocksDB 9.7.3
Screenshot 2024-12-13 at 11 05 32

Disk activity after upgrade
image

Thread causing IO activity especially writes is a compaction thread (rockdb:low)
image

The LOG file : LOG.zip

Wall Clock Profiling
image

Expected behavior

Upgrading RocksDB from 8.3.2 to 9.7.3 version shouldn't trigger a huge compaction, and move data from lower levels to last levels.

Actual behavior

Upgrading RocksDB from 8.3.2 to 9.7.3 triggers a huge compaction, that can take up to two hours, moving data from lower levels to last levels.

Steps to reproduce the behavior

Upgrade rocksdb version (in our case rocksdbjni) from 8.3.2 to 9.7.3.

@zaidoon1
Copy link
Contributor

zaidoon1 commented Dec 13, 2024

it's related to the change in 8.4.0. if you look at the changelog:

@ahamlat
Copy link
Author

ahamlat commented Dec 13, 2024

Thanks @zaidoon1, that explains the behaviour I see.

@ahamlat ahamlat closed this as completed Dec 13, 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

No branches or pull requests

2 participants