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:
parent
496fee3333
commit
a71d19e92a
|
@ -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());
|
||||
|
|
|
@ -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))
|
||||
));
|
||||
|
|
Loading…
Reference in New Issue