Skip to content

Commit e0d4599

Browse files
authored
[ML] Add logging for ModelRegistry cluster state update failure (#125401)
1 parent 51d209e commit e0d4599

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
@@ -728,6 +728,10 @@ public void onResponse(AcknowledgedResponse resp) {
728728

729729
@Override
730730
public void onFailure(Exception exc) {
731+
logger.warn(
732+
format("Failed to add inference endpoint [%s] minimal service settings to cluster state", inferenceEntityId),
733+
exc
734+
);
731735
deleteModel(inferenceEntityId, ActionListener.running(() -> {
732736
listener.onFailure(
733737
new ElasticsearchStatusException(

0 commit comments

Comments
 (0)