File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
plugin/src/main/java/org/opensearch/ml/action/undeploy Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -228,22 +228,22 @@ private void bulkSetModelIndexToUndeploy(
228228 }
229229
230230 bulkUpdateRequest .setRefreshPolicy (WriteRequest .RefreshPolicy .IMMEDIATE );
231- log .info ("No nodes service : {}" , Arrays .toString (modelIds ));
231+ log .info ("No nodes running these models : {}" , Arrays .toString (modelIds ));
232232
233233 try (ThreadContext .StoredContext threadContext = client .threadPool ().getThreadContext ().stashContext ()) {
234234 ActionListener <MLUndeployModelsResponse > listenerWithContextRestoration = ActionListener
235235 .runBefore (listener , () -> threadContext .restore ());
236236 ActionListener <BulkResponse > bulkResponseListener = ActionListener .wrap (br -> {
237- log .debug ("Successfully set modelIds to UNDEPLOY in index" );
237+ log .debug ("Successfully set the following modelId(s) to UNDEPLOY in index: {}" , Arrays . toString ( modelIds ) );
238238 listenerWithContextRestoration .onResponse (new MLUndeployModelsResponse (response ));
239239 }, e -> {
240- log .error ("Failed to set modelIds to UNDEPLOY in index" , e );
240+ log .error ("Failed to set the following modelId(s) to UNDEPLOY in index: {}" , Arrays . toString ( modelIds ) , e );
241241 listenerWithContextRestoration .onFailure (e );
242242 });
243243
244244 client .bulk (bulkUpdateRequest , bulkResponseListener );
245245 } catch (Exception e ) {
246- log .error ("Unexpected error while setting modelIds to UNDEPLOY status to index" , e );
246+ log .error ("Unexpected error while setting the following modelId(s) to UNDEPLOY in index: {}" , Arrays . toString ( modelIds ) , e );
247247 listener .onFailure (e );
248248 }
249249
You can’t perform that action at this time.
0 commit comments