Update openmetadata-ops.sh for collate-spec classpath (#20855)

This fixes an issue we saw in AUTs and sandbox-beta:

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final long java.time.Instant.seconds accessible: module java.base does not "opens java.time" to unnamed module @44075f31
The RCA of this issue is an overriding we are doing on some internal argo lib classes in io.argoproj.workflow.JSON.

This was previously placed in collate-service. In the recent move to collate-spec when preparing the Hybrid Pipeline Service Client, we missed moving this. Then, the classpath was first loading the JSON class from the argo lib, rather than our fixed class inside collate-spec.

This is tricky since running the server from intellij works properly. However, the issue happens when running from openmetadata-server-start.sh, which is the dep used within Docker too.
This commit is contained in:
Pere Miquel Brull 2025-04-16 10:32:31 +02:00 committed by GitHub
parent 1f49ef4831
commit 97b9b75fce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ fi
if [ -d "${LIBS_DIR}" ]; then
# First, add collate-service jar to the classpath.
# This is required for cases where we override classes from dependencies.
for file in "${LIBS_DIR}"collate-service-*.jar;
for file in "${LIBS_DIR}"collate-spec-*.jar;
do
CLASSPATH="$CLASSPATH":"$file"
done