mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-06-27 04:22:05 +00:00
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:
parent
1f49ef4831
commit
97b9b75fce
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user