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:
Tanguy Leroux 2018-03-19 09:46:53 +01:00
parent b57bd695f2
commit 0f93b7abdf
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}