Background
The database upgraded its bundled Hadoop dependency from 3.4.2 to 3.4.3 (PR #69503). Hadoop 3.4.3 includes HADOOP-19719, which upgrades the Wildfly OpenSSL bindings from2.1.4.Final to 2.2.5.Final to add OpenSSL 3.0 compatibility. However, the new native libraries (libwfssl.so) were built against GLIBC 2.34+, which introduces compatibility issues on older Linux distributions.
Affected versions: 4.1.0+, 4.0.7+, 3.5.14+
Typical Symptoms
When this issue occurs, CN/BE nodes crash with a SIGSEGV (segmentation fault) during SSL context initialization. The FE reports errors like:FILES() function:
Java_org_wildfly_openssl_SSLImpl_makeSSLContext0 loads libwfssl.so, which is compiled against the OpenSSL 3.x ABI. Inside the starrocks_be process, however, OpenSSL symbol lookups from libwfssl.so are satisfied by the OpenSSL 1.x symbols that are statically linked into the starrocks_be binary (from the database’ thirdparty) before they can ever reach the system’s OpenSSL 3.x shared libraries on disk. A 3.x call site (SSL_CTX_new_ex) dispatching into a 1.x implementation is what actually crashes the JVM. This is why merely installing OpenSSL 3.x or its development headers on the host does NOT fix the crash — the BE’s in-process OpenSSL 1.x always wins symbol resolution.
Q1: What is the Wildfly OpenSSL native library?
Hadoop uses the Wildfly OpenSSL library to bind native OpenSSL to the Java JSSE (Java Secure Socket Extension) APIs. This allows Hadoop’s S3A, Azure Blob (ABFS), and Azure Data Lake (ADL) connectors to use native OpenSSL for TLS/SSL connections instead of the JVM’s built-in SSL implementation. When it works, this provides a performance benefit for high-throughput encrypted I/O.Q2: What went wrong in Hadoop 3.4.3?
Hadoop 3.4.3 upgraded Wildfly OpenSSL to2.2.5.Final to support OpenSSL 3.0 (HADOOP-19719). The new native library (libwfssl.so) was built against GLIBC 2.34+ and targets the OpenSSL 3.x ABI. Because the database’ starrocks_be binary still statically links OpenSSL 1.x from its thirdparty, this produces two distinct failure modes:
On affected systems, the Wildfly native library crash can cause JVM instability (including
hs_err crash logs on CN/BE nodes), failed SSL/TLS connections to cloud storage (AWS S3, Azure Blob, Azure Data Lake), and silent fallback to unencrypted or broken connections.
Q3: How do I fix this?
There are multiple solutions depending on your environment and requirements.Solution 1: Disable Wildfly Native SSL
Force Hadoop to use the JVM’s built-in SSL implementation instead of the native Wildfly/OpenSSL path. This is the safest and most portable fix. Add the following to yourcore-site.xml on all CN/BE nodes:
core-site.xml:
- For the database BE/CN:
$STARROCKS_HOME/conf/core-site.xml - For Broker processes:
$BROKER_HOME/conf/core-site.xml
Solution 2: Remove the wildfly-openssl JAR from the BE Package
The root cause is that libwfssl.so (shipped inside wildfly-openssl-*.Final.jar) is compiled for the OpenSSL 3.x ABI, while the starrocks_be binary still statically links OpenSSL 1.x from the database thirdparty. Inside the BE process, OpenSSL symbol lookups from libwfssl.so are resolved against the 1.x symbols baked into starrocks_be before they can reach any system OpenSSL 3.x shared library, and the 3.x-call-into-1.x-implementation dispatch crashes in SSL_CTX_new_ex. Installing libssl-dev on Ubuntu or openssl-devel on RHEL cannot change this: even if those packages upgrade the host’s OpenSSL to 3.x, the BE’s in-process OpenSSL 1.x still wins symbol resolution every time. Treat any older guidance that suggests apt install libssl-dev or yum install openssl-devel as ineffective for this crash.
A reliable workaround is to delete the offending JAR so Hadoop cannot load the native library at all and falls back to JSSE automatically:
java-extensions/pom.xml (for hadoop-common, hadoop-aws, hadoop-azure, and hadoop-azure-datalake), so the JAR is never produced by the java-extensions/hadoop-lib assembly. build.sh additionally rm -rfs ${STARROCKS_OUTPUT}/be/lib/hadoop/common/wildfly-openssl-2.2.5.Final.jar from the BE output as a belt-and-braces safety net. No manual cleanup is required after upgrading.
Q4: Which cloud storage connectors are affected?
Note
The Azure Data Lake Store SDK also supports
AdlStoreOptions.setSSLChannelMode() programmatically, but for the database the core-site.xml approach is the standard method.
Q5: Is there a performance impact from disabling native SSL?
Yes, but it is minor for most workloads. The native OpenSSL path (via Wildfly) can provide better throughput for large-scale encrypted I/O operations. However, the JVM’s built-in JSSE implementation is well-optimized in modern JDKs (Java 11+) and is sufficient for most data lake query patterns. If you are on a platform that supports the new Wildfly native library (RHEL 9 / Ubuntu 24.04 with GLIBC 2.34+ and OpenSSL 3.0), you can keep thedefault or openssl mode for maximum performance.
Q6: How do I verify the fix is working?
After applying the configuration change and restarting services:- Re-run the failing workload (e.g., query against external S3/Azure tables).
- Check BE/CN logs for the absence of:
hs_err_pid*.logfiles (JVM crash logs)UnsatisfiedLinkErrormentioningGLIBC_2.34orlibwfssl.soorg.wildfly.opensslerror stack traces
- Confirm successful SSL connections in the log:
- With
default_jsse: You should see standard JSSE handshake logs (no Wildfly references). - With
default: You may seeFailed to load OpenSSL. Falling back to the JSSE(this is expected and safe).
- With
Q7: Does this affect RHEL 8 / CentOS 8 specifically?
Yes. RHEL 8 ships with GLIBC 2.28, which is significantly older than the 2.34 required by the new Wildfly native library. On RHEL 8:- The native library will not load at all (
UnsatisfiedLinkError). - The Hadoop 3.4.3 release notes explicitly state: “as the native libraries were built with GLIBC 2.34+, these do not work on RHEL8. For deployment on those systems, stick with the JVM ssl support.”
default_jsse mode. Plan migration to RHEL 9 for long-term support.
Q8: What about FIPS-compliant environments?
Linux distributions with a FIPS-compliant SSL library may not be compatible with the Wildfly native OpenSSL bindings. If you are running in a FIPS-compliant environment, always usedefault_jsse (JVM SSL) unless you have verified that the native library is compatible with your specific FIPS OpenSSL implementation.
Q9: What has the database done to mitigate this?
- Exclude
wildfly-opensslat the Java-extensions build layer (issue #71898): recent the database builds add<exclusion>org.wildfly.openssl:wildfly-openssl</exclusion>to thehadoop-common,hadoop-aws,hadoop-azure, andhadoop-azure-datalakedependencies injava-extensions/pom.xml, sojava-extensions/hadoop-libno longer ships the JAR to the BE at all. For extra safety,build.shalsorm -rfs any stragglingwildfly-openssl-2.2.5.Final.jarfrom${STARROCKS_OUTPUT}/be/lib/hadoop/common/. The exclusion is intentionally temporary: it will be restored once the database’ thirdparty OpenSSL is upgraded to 3.x, at which point the in-process ABI will match whatlibwfssl.soexpects. - Documentation: this FAQ and related guidance for configuring
core-site.xml.
Note: an earlier attempt to installlibssl-devinside the Ubuntu runtime Docker image (PR #70688) has been superseded. The crash is caused bylibwfssl.so’s OpenSSL 3.x call sites dispatching into the static OpenSSL 1.x embedded in thestarrocks_bebinary, not by a missing host-side OpenSSL package — so installinglibssl-dev/openssl-develcannot change the outcome.
Quick Reference: Minimal Fix
Pick either of the following on every CN/BE node (and every Broker node, if deployed), then restart the service. Do NOT rely on installinglibssl-dev or openssl-devel — those packages do not fix this crash.
Option A — delete the wildfly-openssl JAR:
$STARROCKS_HOME/conf/core-site.xml:
References
- HADOOP-19719: Upgrade to wildfly version with support for openssl 3
- HADOOP-19262: Upgrade wildfly-openssl for JDK 17+
- FLINK-38284: Flink downstream tracking issue
- Hadoop S3A Troubleshooting Guide
- Hadoop S3A Performance Guide (SSL Channel Mode)
- Wildfly OpenSSL GitHub Repository
- StarRocks Issue #70478: SIGSEGV on Azure ADLS2 query (4.0.7)
- StarRocks PR #69503: Upgrade Hadoop 3.4.2 to 3.4.3
- StarRocks Issue #71898: Drop
wildfly-opensslfrom the BE package - StarRocks PR #70688: Install libssl-dev for Ubuntu runtime (superseded, does not fix the crash)