Skip to content

Commit 2da0985

Browse files
authored
Improve log message of upgrade of primary job snapshots. (#125574)
Instruct users to close the job to proceed with upgrading primary snapshots.
1 parent d9008cd commit 2da0985

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
@@ -211,7 +211,8 @@ protected void masterOperation(Task task, Request request, ClusterState state, A
211211
&& (JobState.CLOSED.equals(MlTasks.getJobState(request.getJobId(), customMetadata)) == false)) {
212212
listener.onFailure(
213213
ExceptionsHelper.conflictStatusException(
214-
"Cannot upgrade snapshot [{}] for job [{}] as it is the current primary job snapshot and the job's state is [{}]",
214+
"Cannot upgrade snapshot [{}] for job [{}] as it is the current primary job snapshot and the job's state is [{}]. "
215+
+ "Please close the job before upgrading the snapshot.",
215216
request.getSnapshotId(),
216217
request.getJobId(),
217218
MlTasks.getJobState(request.getJobId(), customMetadata)

0 commit comments

Comments
 (0)