Skip to content

Commit ddda767

Browse files
committed
add warn log to undeploy action
Signed-off-by: Brian Flores <[email protected]>
1 parent 2831130 commit ddda767

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugin/src/main/java/org/opensearch/ml/action/undeploy/TransportUndeployModelsAction.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ private void undeployModels(
214214
return modelCacheMissForModelIds;
215215
});
216216
if (response.getNodes().isEmpty() || modelNotFoundInNodesCache) {
217+
log
218+
.warn(
219+
"Model undeployment fallback: No active nodes found for models {}."
220+
+ " Proceeding with manual index update to UNDEPLOY state.",
221+
Arrays.toString(modelIds)
222+
);
217223
bulkSetModelIndexToUndeploy(modelIds, tenantId, listener, response);
218224
return;
219225
}

0 commit comments

Comments
 (0)