Skip to content

Commit

Permalink
[ML] Resolve NetworkDisruptionIT (#43441)
Browse files Browse the repository at this point in the history
After the network disruption a partition is created,
one side of which can form a cluster the other can't.
Ensure requests are sent to a node on the correct side
of the cluster
  • Loading branch information
davidkyle committed Jun 21, 2019
1 parent d128033 commit 73221d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
return plugins;
}

// Remove this once the AwaitsFix below has been resolved
public void testDummy() {
assertTrue(true);
}

@AwaitsFix( bugUrl = "https://github.com/elastic/elasticsearch/issues/39858")
public void testJobRelocation() throws Exception {
internalCluster().ensureAtLeastNumDataNodes(5);
ensureStableCluster(5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public static void deleteAllJobs(Logger logger, Client client) throws Exception
protected String awaitJobOpenedAndAssigned(String jobId, String queryNode) throws Exception {

PersistentTasksClusterService persistentTasksClusterService =
internalCluster().getInstance(PersistentTasksClusterService.class, internalCluster().getMasterName());
internalCluster().getInstance(PersistentTasksClusterService.class, internalCluster().getMasterName(queryNode));
// Speed up rechecks to a rate that is quicker than what settings would allow.
// The check would work eventually without doing this, but the assertBusy() below
// would need to wait 30 seconds, which would make the test run very slowly.
Expand Down

0 comments on commit 73221d2

Please sign in to comment.