Skip to content

Commit 0f93b7a

Browse files
committed
Fix compilation errors in ML integration tests
After #29109, the `needsReassignment` method has been moved to the PersistentTasksClusterService. This commit fixes some compilation in tests I introduced.
1 parent b57bd69 commit 0f93b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/persistent/PersistentTasksClusterService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ static boolean persistentTasksChanged(final ClusterChangedEvent event) {
312312
}
313313

314314
/** Returns true if the task is not assigned or is assigned to a non-existing node */
315-
static boolean needsReassignment(final Assignment assignment, final DiscoveryNodes nodes) {
315+
public static boolean needsReassignment(final Assignment assignment, final DiscoveryNodes nodes) {
316316
return (assignment.isAssigned() == false || nodes.nodeExists(assignment.getExecutorNode()) == false);
317317
}
318318

0 commit comments

Comments
 (0)