Skip to content

Commit 6973b28

Browse files
authored
Merge pull request #172 from jfdenise/CLOUD-3471
Fix for CLOUD-3471, Can't run multiple server during migration
2 parents 66f3a7d + 734b2bf commit 6973b28

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

os-eap-migration/added/launch/openshift-migrate-common.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/sh
22
# Openshift EAP common migration script
33

4-
source ${JBOSS_HOME}/bin/launch/launch.sh
54
source ${JBOSS_HOME}/bin/probe_common.sh
65
source /opt/partition/partitionPV.sh
76

@@ -15,9 +14,6 @@ function runMigration() {
1514

1615
cp -f ${STANDALONE_XML_COPY} ${STANDALONE_XML}
1716

18-
# exposed by wildfly-cekit-modules
19-
configure_server
20-
2117
echo "Running $JBOSS_IMAGE_NAME image, version $JBOSS_IMAGE_VERSION"
2218

2319
local txOptions="-Dcom.arjuna.ats.arjuna.common.RecoveryEnvironmentBean.recoveryBackoffPeriod=1 -Dcom.arjuna.ats.arjuna.common.RecoveryEnvironmentBean.periodicRecoveryPeriod=1 -Dcom.arjuna.ats.jta.common.JTAEnvironmentBean.orphanSafetyInterval=1"

os-eap-txnrecovery/bash/added/partitionPV.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ function migratePV() {
174174
done
175175
fi
176176

177+
# server can only be configured once due to CLI script being executed
178+
# doing it before the loop that will start a server per directory.
179+
source $JBOSS_HOME/bin/launch/launch.sh
180+
configure_server
181+
177182
while true ; do
178183

179184
if $IS_TX_SQL_BACKEND; then

0 commit comments

Comments
 (0)