This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 4f0c320c22 docs: describe RocksDB on-disk upgrade compatibility (#9282)
4f0c320c22 is described below
commit 4f0c320c22edcb5eb79a2d83499657f08e930425
Author: Xuanwo <[email protected]>
AuthorDate: Fri Nov 27 22:57:53 2026 +0800
docs: describe RocksDB on-disk upgrade compatibility (#9282)
---
core/core/src/docs/upgrade.md | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/core/core/src/docs/upgrade.md b/core/core/src/docs/upgrade.md
index 5edf6b39d0..b50e4fb806 100644
--- a/core/core/src/docs/upgrade.md
+++ b/core/core/src/docs/upgrade.md
@@ -214,6 +214,25 @@ Existing databases need no data migration. `redb` 5
changed the encoding of `Opt
`Option<String>`, `Option<bool>`, and `Option<char>` only, and the Redb
service stores entries
in a `TableDefinition<&str, &[u8]>` table.
+### RocksDB on-disk compatibility
+
+The bundled native RocksDB version changed from 10.4.2 to 11.8.1. If you
+supply an external RocksDB library, check the version your build links to.
+RocksDB 11.8.1 cannot read block-based SST files in format 0 or 1, so it can
+fail to open a database that still uses either format. It writes new
+block-based SST files in format 7 by default.
+
+Before opening an existing directory with the upgraded build, keep a
+restorable pre-upgrade copy and test the upgrade on a separate copy. For
+format 0 or 1 files, follow the full-compaction upgrade path in the
+[RocksDB release
history](https://github.com/facebook/rocksdb/blob/v11.8.1/HISTORY.md#L155-L188).
+
+In a native rollback test, RocksDB 9.11.2 rejected the format-7 SST file
+written by 11.8.1. To roll back to 9.11.2 after format-7 files have been
+written, use a pre-upgrade copy verified with 9.11.2. RocksDB 10.4.2
+supports format 7 and read data written by 11.8.1 in a separate native
+rollback test.
+
## Zig binding
`Operator.read()` returns `Bytes`. Use `slice()` to borrow the data and defer