Skip to content

Commit 721be9f

Browse files
committed
remove unused function in stop-server.py
1 parent 7b1719e commit 721be9f

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

operator/src/main/resources/scripts/stop-server.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#
2424

2525
import sys
26+
import os
2627
import traceback
2728
import base64
2829
import time as systime
@@ -90,16 +91,6 @@ def checkCoherenceClusterExist(configData):
9091
return True
9192

9293

93-
# Coherence exists and we cannot connect to the admin server. To be on
94-
# the safe side, loop forever until the Operator kills the pod otherwise
95-
# there is a risk to lose data
96-
def waitForeverBecauseCoherence():
97-
print('Shutdown: Waiting until Operator kills the pod since this domain has Coherence')
98-
while (True):
99-
print('Shutdown: Sleeping 60 seconds ...')
100-
systime.sleep(60)
101-
102-
10394
# If there is a Coherence cluster then we wait until it is safe to shutdown
10495
# all distributed services. Each distributed cache (with backup count > 0) has data
10596
# that is in both in a primary partition on one cluster node (i.e. WLS server) and

0 commit comments

Comments
 (0)