Skip to content

Commit

Permalink
Add missing preventDeletionLock.remove in corner case (elastic#115010)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhniebergall authored Oct 17, 2024
1 parent d1f26ab commit 831d55f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ public void updateModelTransaction(Model newModel, Model existingModel, ActionLi
logger.error(
format("Failed to update inference endpoint [%s] due to [%s]", inferenceEntityId, configResponse.buildFailureMessage())
);
preventDeletionLock.remove(inferenceEntityId);
// Since none of our updates succeeded at this point, we can simply return.
finalListener.onFailure(
new ElasticsearchStatusException(
Expand Down

0 comments on commit 831d55f

Please sign in to comment.