Skip to content

Commit 435779c

Browse files
committed
[WFCORE-7038]: OperationContext should ignore reloadRequired or restartRequired on boot.
* AbstractOperationContext is ignoring reloadRequired() and restartRequired() if isBooting() is returning true. Jira: https://issues.redhat.com/browse/WFCORE-7038 Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
1 parent b124810 commit 435779c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

controller/src/main/java/org/jboss/as/controller/AbstractOperationContext.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,10 @@ final boolean isRollingBack() {
12261226
@Override
12271227
public final void reloadRequired() {
12281228
if (processState.isReloadSupported()) {
1229+
if(isBooting()) {
1230+
MGMT_OP_LOGGER.debug("Server is booting so we didn't set the reload required flag");
1231+
return;
1232+
}
12291233
activeStep.setRestartStamp(processState.setReloadRequired());
12301234
activeStep.response.get(RESPONSE_HEADERS, OPERATION_REQUIRES_RELOAD).set(true);
12311235
getManagementModel().getCapabilityRegistry().capabilityReloadRequired(activeStep.address,
@@ -1237,6 +1241,9 @@ public final void reloadRequired() {
12371241

12381242
@Override
12391243
public final void restartRequired() {
1244+
if (isBooting()) {
1245+
return;
1246+
}
12401247
activeStep.setRestartStamp(processState.setRestartRequired());
12411248
activeStep.response.get(RESPONSE_HEADERS, OPERATION_REQUIRES_RESTART).set(true);
12421249
getManagementModel().getCapabilityRegistry().capabilityRestartRequired(activeStep.address,

0 commit comments

Comments
 (0)