Skip to content

Commit c361630

Browse files
authored
[ML] Add logging for ModelRegistry cluster state update failure (#125401) (#125407)
1 parent 7444595 commit c361630

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,10 @@ public void onResponse(AcknowledgedResponse resp) {
725725

726726
@Override
727727
public void onFailure(Exception exc) {
728+
logger.warn(
729+
format("Failed to add inference endpoint [%s] minimal service settings to cluster state", inferenceEntityId),
730+
exc
731+
);
728732
deleteModel(inferenceEntityId, ActionListener.running(() -> {
729733
listener.onFailure(
730734
new ElasticsearchStatusException(

0 commit comments

Comments
 (0)