Is ldb checkpoint influenced by merge operators?

14 views
Skip to first unread message

Conrado

unread,
Jul 24, 2025, 5:35:30 PMJul 24
to rocksdb
I'm trying to debug a weird issue in my application where some values in the database seem to be invalid. While it could very well be a bug in the application, I'm wondering if this could be the cause:

I extensively use `ldb checkpoint` to create backups before testing code that e.g. upgrades the database contents. However, we recently started using a merge operator in one of the columns. In that case, does `ldb checkpoint` could cause issues, considering the warning in the documentation (e.g. the FAQ "Q: If I use non-default comparators or merge operators, can I still use ldb tool? A: You cannot use the regular ldb tool in this case. (...)"). I'm not familiar with the RocksDB architecture so I have no idea if checkpoints could be influenced by merge operators.

Thank you!
Conrado

Conrado

unread,
Jul 28, 2025, 9:47:32 AMJul 28
to rocksdb
We did some more testing and we're pretty sure the corruption was caused by `ldb checkpoint`. Interestingly it corrupts both the source and destination folders. Be careful if you're using merge operators!

Conrado
Reply all
Reply to author
Forward
0 new messages