Skip to content

Commit 29db8e4

Browse files
authored
[ML] Enhance error message for snapshot upgrade (#125215) (#125229)
1 parent 4ad769a commit 29db8e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportUpgradeJobModelSnapshotAction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ protected void masterOperation(Task task, Request request, ClusterState state, A
213213
&& (JobState.CLOSED.equals(MlTasks.getJobState(request.getJobId(), customMetadata)) == false)) {
214214
listener.onFailure(
215215
ExceptionsHelper.conflictStatusException(
216-
"Cannot upgrade snapshot [{}] for job [{}] as it is the current primary job snapshot and the job's state is [{}]",
216+
"Cannot upgrade snapshot [{}] for job [{}] as it is the current primary job snapshot and the job's state is [{}]. "
217+
+ "Please close the job before upgrading the snapshot.",
217218
request.getSnapshotId(),
218219
request.getJobId(),
219220
MlTasks.getJobState(request.getJobId(), customMetadata)

0 commit comments

Comments
 (0)