Skip to content

Commit 46a67d7

Browse files
authored
OWLS-86552 - Fix for multiple pod restarts during rolling update. ManagedServerUpAfterStep is executed after servers in all clusters started. (#2109)
1 parent 48310c5 commit 46a67d7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

operator/src/main/java/oracle/kubernetes/operator/steps/ManagedServerUpIteratorStep.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,11 @@ public NextAction apply(Packet packet) {
9494
}
9595

9696
if (!work.isEmpty()) {
97-
return doForkJoin(DomainStatusUpdater.createStatusUpdateStep(getNext()), packet, work);
97+
return doForkJoin(DomainStatusUpdater.createStatusUpdateStep(
98+
new ManagedServerUpAfterStep(getNext())), packet, work);
9899
}
99100

100-
return doNext(DomainStatusUpdater.createStatusUpdateStep(getNext()), packet);
101+
return doNext(DomainStatusUpdater.createStatusUpdateStep(new ManagedServerUpAfterStep(getNext())), packet);
101102
}
102103

103104

@@ -167,7 +168,7 @@ void add(StepAndPacket serverToStart) {
167168
public NextAction apply(Packet packet) {
168169

169170
if (startDetailsQueue.isEmpty()) {
170-
return doNext(new ManagedServerUpAfterStep(getNext()), packet);
171+
return doNext(getNext(), packet);
171172
} else if (hasServerAvailableToStart(packet.getSpi(DomainPresenceInfo.class))) {
172173
numStarted.getAndIncrement();
173174
return doForkJoin(this, packet, Collections.singletonList(startDetailsQueue.poll()));

0 commit comments

Comments
 (0)