mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
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 */
|
/** 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);
|
return (assignment.isAssigned() == false || nodes.nodeExists(assignment.getExecutorNode()) == false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user