5757import static oracle .kubernetes .operator .DomainStatusUpdater .createProgressingStartedEventStep ;
5858import static oracle .kubernetes .operator .LabelConstants .INTROSPECTION_DOMAIN_SPEC_GENERATION ;
5959import static oracle .kubernetes .operator .LabelConstants .INTROSPECTION_STATE_LABEL ;
60+ import static oracle .kubernetes .operator .ProcessingConstants .DOMAIN_INTROSPECT_REQUESTED ;
6061import static oracle .kubernetes .operator .logging .MessageKeys .INTROSPECTOR_JOB_FAILED ;
6162import static oracle .kubernetes .operator .logging .MessageKeys .INTROSPECTOR_JOB_FAILED_DETAIL ;
6263
@@ -98,7 +99,7 @@ private static boolean runIntrospector(Packet packet, DomainPresenceInfo info) {
9899 LOGGER .fine ("isModelInImageUpdate: " + isModelInImageUpdate (packet , info ));
99100 return topology == null
100101 || isBringingUpNewDomain (packet , info )
101- || isIntrospectionRequestedAndRemove (packet )
102+ || checkIfIntrospectionRequestedAndReset (packet )
102103 || isModelInImageUpdate (packet , info )
103104 || isIntrospectVersionChanged (packet , info );
104105 }
@@ -107,8 +108,8 @@ private static boolean isBringingUpNewDomain(Packet packet, DomainPresenceInfo i
107108 return runningServersCount (info ) == 0 && creatingServers (info ) && isGenerationChanged (packet , info );
108109 }
109110
110- private static boolean isIntrospectionRequestedAndRemove (Packet packet ) {
111- return packet .remove (ProcessingConstants . DOMAIN_INTROSPECT_REQUESTED ) != null ;
111+ private static boolean checkIfIntrospectionRequestedAndReset (Packet packet ) {
112+ return packet .remove (DOMAIN_INTROSPECT_REQUESTED ) != null ;
112113 }
113114
114115 private static boolean isIntrospectVersionChanged (Packet packet , DomainPresenceInfo info ) {
@@ -506,6 +507,7 @@ private Step readDomainIntrospectorPodLog(String jobPodName, String namespace, S
506507 }
507508
508509 private static class ReadDomainIntrospectorPodLogResponseStep extends ResponseStep <String > {
510+ public static final String INTROSPECTION_FAILED = "INTROSPECTION_FAILED" ;
509511 private StringBuilder logMessage = new StringBuilder ();
510512 private final List <String > severeStatuses = new ArrayList <>();
511513
@@ -552,6 +554,7 @@ public NextAction onSuccess(Packet packet, CallResponse<String> callResponse) {
552554 getJobCreationTime (domainIntrospectorJob ).plus (retryIntervalSeconds , SECONDS ))) {
553555 //Introspector job is incomplete and current time is greater than the lazy deletion time for the job,
554556 //update the domain status and execute the next step
557+ packet .put (DOMAIN_INTROSPECT_REQUESTED , INTROSPECTION_FAILED );
555558 nextStep = getNext ();
556559 }
557560
0 commit comments