testRecoveryAfterPrimaryPromotion shouldn't flush the replica with extra operations

We don't yet have lucene rollbacks, so we can't bake those in
This commit is contained in:
Boaz Leskes 2017-06-22 23:24:43 +02:00
parent 1ac7818201
commit fb8c767737

View File

@ -186,7 +186,7 @@ public class RecoveryDuringReplicationTests extends ESIndexLevelReplicationTestC
totalDocs += shards.indexDocs(randomIntBetween(0, 5));
if (randomBoolean()) {
shards.flush();
newPrimary.flush(new FlushRequest());
}
oldPrimary.close("demoted", false);