From 536e7d6d673e09fce71d9aee68ade3aa4e9947c5 Mon Sep 17 00:00:00 2001 From: Sicheng Song Date: Sun, 24 Sep 2023 04:02:32 +0000 Subject: [PATCH 1/2] Fix error message in TransportDeplpoyModelAction class Signed-off-by: Sicheng Song --- .../ml/action/deploy/TransportDeployModelAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/org/opensearch/ml/action/deploy/TransportDeployModelAction.java b/plugin/src/main/java/org/opensearch/ml/action/deploy/TransportDeployModelAction.java index acdfb5ec09..166ee1e88b 100644 --- a/plugin/src/main/java/org/opensearch/ml/action/deploy/TransportDeployModelAction.java +++ b/plugin/src/main/java/org/opensearch/ml/action/deploy/TransportDeployModelAction.java @@ -250,11 +250,11 @@ protected void doExecute(Task task, ActionRequest request, ActionListener { - log.error("Failed to deploy model " + modelId, e); + log.error("Failed to get ML model " + modelId, e); listener.onFailure(e); })); } catch (Exception e) { - log.error("Failed to get ML model " + modelId, e); + log.error("Failed to deploy model " + modelId, e); listener.onFailure(e); } From 96b6c46ad9b4c75b67e4788f41f8426915ccae04 Mon Sep 17 00:00:00 2001 From: Sicheng Song Date: Tue, 26 Sep 2023 18:52:07 +0000 Subject: [PATCH 2/2] Elaborate error message Signed-off-by: Sicheng Song --- .../ml/action/deploy/TransportDeployModelAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/org/opensearch/ml/action/deploy/TransportDeployModelAction.java b/plugin/src/main/java/org/opensearch/ml/action/deploy/TransportDeployModelAction.java index 166ee1e88b..134b3260de 100644 --- a/plugin/src/main/java/org/opensearch/ml/action/deploy/TransportDeployModelAction.java +++ b/plugin/src/main/java/org/opensearch/ml/action/deploy/TransportDeployModelAction.java @@ -250,11 +250,11 @@ protected void doExecute(Task task, ActionRequest request, ActionListener { - log.error("Failed to get ML model " + modelId, e); + log.error("Failed to retrieve the ML model with ID: " + modelId, e); listener.onFailure(e); })); } catch (Exception e) { - log.error("Failed to deploy model " + modelId, e); + log.error("Failed to deploy the ML model with ID " + modelId, e); listener.onFailure(e); }