Skip to content

Commit 83aafd6

Browse files
authored
[chore](test) Export JAVA_HOME before start fe (#59084)
1 parent 28be8c7 commit 83aafd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regression-test/suites/cloud_p0/recycler/test_recycler_clone_instance.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ suite("test_recycler_clone_instance") {
140140
logger.info("Verified snapshot_info.json content: ${jsonContent}")
141141

142142
logger.info("Starting FE with snapshot_info.json")
143-
def startFeCmd = "ssh -o StrictHostKeyChecking=no ${username}@${masterFeHost} \"cd ${dorisHome}/fe/bin && ./start_fe.sh --daemon --cluster_snapshot snapshot_info.json\""
143+
def startFeCmd = "ssh -o StrictHostKeyChecking=no ${username}@${masterFeHost} \"cd ${dorisHome}/fe/bin && export JAVA_HOME=${DORIS_JAVA_HOME} && ./start_fe.sh --daemon --cluster_snapshot snapshot_info.json\""
144144
executeCommand(startFeCmd, true)
145145
logger.info("Master FE started successfully with cluster snapshot")
146146

@@ -152,7 +152,7 @@ suite("test_recycler_clone_instance") {
152152
logger.info("Starting all BEs")
153153
for (def beHost : beHosts) {
154154
logger.info("Starting BE on ${beHost}")
155-
def startBeCmd = "ssh -o StrictHostKeyChecking=no ${username}@${beHost} \"cd ${dorisHome}/be/bin && ./start_be.sh --daemon\""
155+
def startBeCmd = "ssh -o StrictHostKeyChecking=no ${username}@${beHost} \"cd ${dorisHome}/be/bin && export JAVA_HOME=${DORIS_JAVA_HOME} && ./start_be.sh --daemon\""
156156
executeCommand(startBeCmd, true)
157157
logger.info("BE on ${beHost} started successfully")
158158
}

0 commit comments

Comments
 (0)