Skip to content

Commit

Permalink
Fix compilation errors in ML integration tests
Browse files Browse the repository at this point in the history
After #29109, the `needsReassignment` method has
been moved to the PersistentTasksClusterService. This commit fixes
some compilation in tests I introduced.
  • Loading branch information
tlrx committed Mar 19, 2018
1 parent b57bd69 commit 0f93b7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ static boolean persistentTasksChanged(final ClusterChangedEvent event) {
}

/** 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);
}

Expand Down

0 comments on commit 0f93b7a

Please sign in to comment.