Skip to content

Commit

Permalink
NIFI-12992: Do not reset validation status for a component if it is n…
Browse files Browse the repository at this point in the history
…ot in a state where validation will be performed
  • Loading branch information
markap14 committed Sep 25, 2024
1 parent 45a2e8f commit 6443e14
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,11 @@ private boolean replaceValidationState(final ValidationState expectedState, fina
public void resetValidationState() {
lock.lock();
try {
if (!isValidationNecessary()) {
logger.debug("Triggered to reset validation state of {} but will leave validation state as {} because validation is not necessary in its current state", this, validationState.get());
return;
}

validationContext = null;
validationState.set(new ValidationState(ValidationStatus.VALIDATING, Collections.emptyList()));

Expand Down

0 comments on commit 6443e14

Please sign in to comment.