Skip to content

Commit 4f7c5d8

Browse files
Add missing preventDeletionLock.remove in corner case (#115010) (#115033)
(cherry picked from commit 831d55f)
1 parent c1c2a44 commit 4f7c5d8

File tree

1 file changed

+1
-0
lines changed
  • x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/registry

1 file changed

+1
-0
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/registry/ModelRegistry.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ public void updateModelTransaction(Model newModel, Model existingModel, ActionLi
397397
logger.error(
398398
format("Failed to update inference endpoint [%s] due to [%s]", inferenceEntityId, configResponse.buildFailureMessage())
399399
);
400+
preventDeletionLock.remove(inferenceEntityId);
400401
// Since none of our updates succeeded at this point, we can simply return.
401402
finalListener.onFailure(
402403
new ElasticsearchStatusException(

0 commit comments

Comments
 (0)