This is an automated email from the ASF dual-hosted git repository.
jojochuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone-site.git
The following commit(s) were added to refs/heads/master by this push:
new 42d62b5458 HDDS-17156. Release guide: pin the build environment for
native libraries and verify they load (#581)
42d62b5458 is described below
commit 42d62b545865fd71828d193e8d474f3e864889fa
Author: Siyao Meng <[email protected]>
AuthorDate: Wed Oct 21 11:54:29 2026 -0700
HDDS-17156. Release guide: pin the build environment for native libraries
and verify they load (#581)
Generated-by: Claude Opus 5.5 <[email protected]>
---
.../04-project/02-release-guide.md | 29 ++++++++++++++++++----
1 file changed, 24 insertions(+), 5 deletions(-)
diff --git a/docs/08-developer-guide/04-project/02-release-guide.md
b/docs/08-developer-guide/04-project/02-release-guide.md
index d834b5a9e3..bde6bc0ff9 100644
--- a/docs/08-developer-guide/04-project/02-release-guide.md
+++ b/docs/08-developer-guide/04-project/02-release-guide.md
@@ -20,23 +20,29 @@ The following packages are required during the release
process:
:::note
Release managers must build the official release artifacts on Linux. As of
Ozone 2.0.0, Ozone includes optional native libraries for the fault injection
tool and Ozone Snapshot features. Building on Linux ensures these features are
available in the released artifacts.
+
+The native libraries link against the `glibc` and `libstdc++` of the build
machine, so they only load on systems with the same or newer versions. Build
the release on Rocky Linux 9, the base of the
[apache/ozone](https://hub.docker.com/r/apache/ozone) Docker image, or in a
`rockylinux:9` container. Native libraries built on a newer distribution, such
as a recent Ubuntu or Debian, may not load on Rocky Linux 9. The native
libraries are built only for the CPU architecture of the build machine.
:::
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
<Tabs>
-<TabItem value="rockylinux" label="Rocky Linux">
+<TabItem value="rockylinux" label="Rocky Linux 9">
```bash title="Install pre-requisites"
-yum install -y svn git pinentry java-1.8.0-openjdk-devel cmake gcc-c++ patch
which
+yum install -y svn git pinentry java-1.8.0-openjdk-devel cmake gcc-c++ patch
which unzip
```
</TabItem>
-<TabItem value="ubuntulinux" label="Ubuntu Linux">
+<TabItem value="container" label="rockylinux:9 container">
-```bash title="Install pre-requisites"
-apt update && apt install -y subversion git pinentry-tty openjdk-8-jdk cmake
g++ patch gpg
+```bash title="Start a build container from the Ozone repository"
+docker run -it --rm -v "$PWD:/ozone" -v "$HOME/.m2:/root/.m2" -v
"$HOME/.gnupg:/root/.gnupg" -w /ozone rockylinux:9 bash
+```
+
+```bash title="Install pre-requisites in the container"
+yum install -y svn git pinentry java-1.8.0-openjdk-devel cmake gcc-c++ patch
which unzip
```
</TabItem>
@@ -405,6 +411,19 @@ Before uploading the artifacts, run some basic tests on
them, similar to what ot
:::note
The `test.sh` file committed to the master branch only checks upgrade
compatibility against the last released Ozone version to save build time.
Compatibility with all past versions should be checked by uncommenting all
`run_test` lines in the `test.sh` file before running it. This test matrix may
take a long time to run, so it might be better to run it on GitHub Actions
instead of locally.
:::
+8. Verify the native library in the extracted release tarball on Rocky Linux 9
or in a `rockylinux:9` container.
+ - Check that it loads. Run the command from a directory you can write to;
the output should contain `rocks-tools: true`.
+
+ ```bash
+ bin/ozone debug checknative
+ ```
+
+ - Check the newest glibc and libstdc++ versions it requires. They must not
be newer than `GLIBC_2.34` and `GLIBCXX_3.4.29`, the versions in Rocky Linux 9.
+
+ ```bash
+ unzip -o -q share/ozone/lib/hdds-rocks-native-$VERSION.jar
libozone_rocksdb_tools.so -d /tmp/ozone-native
+ for v in GLIBC GLIBCXX; do objdump -T
/tmp/ozone-native/libozone_rocksdb_tools.so | grep -oE "${v}_[0-9.]+" | sort
-uV | tail -n 1; done
+ ```
### Upload the Artifacts to Dev Staging
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]