Fix compilation errors in ML integration tests
After elastic/elasticsearch#29109, the `needsReassignment` method has been moved to the PersistentTasksClusterService. This commit fixes some compilation in tests I introduced.
This commit is contained in:
parent
b57bd695f2
commit
0f93b7abdf
|
@ -312,7 +312,7 @@ public class PersistentTasksClusterService extends AbstractComponent implements
|
|||
}
|
||||
|
||||
/** Returns true if the task is not assigned or is assigned to a non-existing node */
|
||||
static boolean needsReassignment(final Assignment assignment, final DiscoveryNodes nodes) {
|
||||
public static boolean needsReassignment(final Assignment assignment, final DiscoveryNodes nodes) {
|
||||
return (assignment.isAssigned() == false || nodes.nodeExists(assignment.getExecutorNode()) == false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue