Skip to content

Commit 9e8d3e1

Browse files
committed
update restarting doc, delete shutdown marker during startup
1 parent 246331b commit 9e8d3e1

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

docs-source/content/userguide/managing-domains/domain-lifecycle/restarting.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,10 @@ If you've created a new image that is not rolling compatible, and you've changed
199199
the image, or the Kubernetes resources that register your domain with the operator. For example, your servers are caching information from an external database and you've modified the contents of the database.
200200

201201
In these cases, you must manually initiate a restart.
202+
203+
* **Managed Coherence Server safe shutdown**.
204+
205+
If the domain is configued to use Coherence Clusters, then the Operator will automatically wait until the Coherence HAStatus MBean attribute
206+
indicates that it is safe to shutdown the server. If, for some reason, the Operator is not able to access the Coherence MBean then the server
207+
will not be shutdown until the domain timeoutSeconds expires. To minimize any possibility of cache data loss, you should increase
208+
the timeoutSeconds value to a large number, for example: 15 minutes.

integration-tests/src/test/java/oracle/kubernetes/operator/ITCoherenceTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public static void staticPrepare() throws Exception {
5757
@AfterClass
5858
public static void staticUnPrepare() throws Exception {
5959
if (!QUICKTEST) {
60-
tearDown(new Object() {}.getClass().getEnclosingClass().getSimpleName());
6160
operator1.destroy();
61+
tearDown(new Object() {}.getClass().getEnclosingClass().getSimpleName());
6262
}
6363
}
6464

@@ -193,7 +193,7 @@ private void restartDomainByChangingEnvProperty() throws Exception {
193193
// sleep and iterations
194194
//
195195
setWaitTimePod(2);
196-
setMaxIterationsPod(125);
196+
setMaxIterationsPod(150);
197197

198198
domain.verifyDomainServerPodRestart(
199199
"\"-Dweblogic.StdoutDebugEnabled=false\"", "\"-Dweblogic.StdoutDebugEnabled=true\"");

operator/src/main/resources/scripts/startNodeManager.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ else
110110
export SHUTDOWN_MARKER_FILE="${serverLogHome}/${SERVER_NAME}.shutdown"
111111
serverOutOption="-Dweblogic.Stdout=${SERVER_OUT_FILE}"
112112
createFolder "${serverLogHome}"
113+
rm ${SHUTDOWN_MARKER_FILE}
113114
fi
114115

115116

operator/src/main/resources/scripts/startServer.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ copySitCfg /weblogic-operator/introspector ${DOMAIN_HOME}/optconfig/jms
238238
copySitCfg /weblogic-operator/introspector ${DOMAIN_HOME}/optconfig/jdbc 'Sit-Cfg-JDBC--'
239239
copySitCfg /weblogic-operator/introspector ${DOMAIN_HOME}/optconfig/diagnostics 'Sit-Cfg-WLDF--'
240240

241+
242+
241243
if [ "${MOCK_WLS}" == 'true' ]; then
242244
mockWLS
243245
waitForShutdownMarker

0 commit comments

Comments
 (0)