Skip to content

Commit

Permalink
Do not use mock engine in PrimaryAllocationIT (#44083)
Browse files Browse the repository at this point in the history
PrimaryAllocationIT#testForceStaleReplicaToBePromotedToPrimary 
relies on the flushing when a shard is no long assigned. This behavior,
however, can be randomly disabled in MockInternalEngine.

Closes #44049
  • Loading branch information
dnhatn committed Jul 13, 2019
1 parent 7d28bef commit e55728b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
return Arrays.asList(MockTransportService.TestPlugin.class, InternalSettingsPlugin.class);
}

@Override
protected boolean addMockInternalEngine() {
// testForceStaleReplicaToBePromotedToPrimary replies on the flushing when a shard is no longer assigned.
return false;
}

public void testBulkWeirdScenario() throws Exception {
String master = internalCluster().startMasterOnlyNode(Settings.EMPTY);
internalCluster().startDataOnlyNodes(2);
Expand Down

0 comments on commit e55728b

Please sign in to comment.