Skip to content

Commit 31f3257

Browse files
committed
Add logging to explain pod recycling
1 parent 9540a7c commit 31f3257

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

operator/src/main/java/oracle/kubernetes/operator/helpers/PodStepContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ public NextAction apply(Packet packet) {
434434
logPodExists();
435435
return doNext(packet);
436436
} else {
437+
LOGGER.info(MessageKeys.CYCLING_POD, currentPod, getPodModel());
437438
return doNext(replaceCurrentPod(getNext()), packet);
438439
}
439440
}

operator/src/main/java/oracle/kubernetes/operator/logging/MessageKeys.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,5 @@ private MessageKeys() {}
145145
public static final String CANNOT_PARSE_INTROSPECTOR_RESULT = "WLSKO-0142";
146146
public static final String CANNOT_PARSE_INTROSPECTOR_FILE = "WLSKO-0143";
147147
public static final String CANNOT_START_DOMAIN_AFTER_MAX_RETRIES = "WLSKO-0144";
148+
public static final String CYCLING_POD = "WLSKO-0145";
148149
}

operator/src/main/resources/Operator.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,5 @@ WLSKO-0140=Job {0} is completed with status: {1}
142142
WLSKO-0141=Failed to parse WebLogic Domain topology due to exception: {0}
143143
WLSKO-0142=Failed to parse results from domain introspector for domain {0} due to exception: {1}
144144
WLSKO-0143=Failed to parse file {0} from domain introspector for domain {1} due to exception: {2}
145-
WLSKO-0144=Unable to start domain with domainUID {0} in namespace {1} after {2} attempts due to exception: {3}
145+
WLSKO-0144=Unable to start domain with domainUID {0} in namespace {1} after {2} attempts due to exception: {3}
146+
WLSKO-0145=Replacing pod {0} with {1}

0 commit comments

Comments
 (0)