Ensure testAckedIndexing uses disruption index settings

AbstractDisruptionTestCase set a lower global checkpoint sync interval setting, but this was ignored by
testAckedIndexing, which has led to spurious test failures

Relates #41068, #38931
This commit is contained in:
Yannick Welsch 2019-05-22 19:07:56 +02:00
parent 496fee3333
commit a71d19e92a
2 changed files with 2 additions and 1 deletions

View File

@ -356,7 +356,7 @@ public class PeerRecoveryTargetService implements IndexEventListener {
logger.trace("{} preparing for file-based recovery from [{}]", recoveryTarget.shardId(), recoveryTarget.sourceNode());
} else {
logger.trace(
"{} preparing for sequence-number-based recovery starting at local checkpoint [{}] from [{}]",
"{} preparing for sequence-number-based recovery starting at sequence number [{}] from [{}]",
recoveryTarget.shardId(),
startingSeqNo,
recoveryTarget.sourceNode());

View File

@ -118,6 +118,7 @@ public class ClusterDisruptionIT extends AbstractDisruptionTestCase {
assertAcked(prepareCreate("test")
.setSettings(Settings.builder()
.put(indexSettings())
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, 1 + randomInt(2))
.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, randomInt(2))
));