Skip to content

Commit 34e9808

Browse files
committed
Avoid the intermediate projectState
1 parent 14ac833 commit 34e9808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/task/ReindexDataStreamTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public ReindexDataStreamStatus getStatus() {
7474
int totalIndices = initialTotalIndices;
7575
int totalIndicesToBeUpgraded = initialTotalIndicesToBeUpgraded;
7676
PersistentTasksCustomMetadata.PersistentTask<?> persistentTask = PersistentTasksCustomMetadata.getTaskWithId(
77-
clusterService.state().projectState(projectId).metadata(),
77+
clusterService.state().metadata().getProject(projectId),
7878
getPersistentTaskId()
7979
);
8080
boolean isComplete;

0 commit comments

Comments
 (0)