@@ -360,7 +360,6 @@ public void testIndexingWithFuzzyFilterPostings() throws Exception {
360
360
Settings .Builder settings = Settings .builder ()
361
361
.put (IndexMetadata .INDEX_NUMBER_OF_SHARDS_SETTING .getKey (), shardCount )
362
362
.put (IndexMetadata .INDEX_NUMBER_OF_REPLICAS_SETTING .getKey (), replicaCount )
363
- .put (IndexMetadata .SETTING_REPLICATION_TYPE , ReplicationType .SEGMENT )
364
363
.put (
365
364
EngineConfig .INDEX_CODEC_SETTING .getKey (),
366
365
randomFrom (new ArrayList <>(CODECS ) {
@@ -406,7 +405,6 @@ public void testIndexingWithFuzzyFilterPostings() throws Exception {
406
405
throw new UnsupportedOperationException ("Unknown cluster type [" + CLUSTER_TYPE + "]" );
407
406
}
408
407
409
- waitForSearchableDocs (indexName , shardCount , replicaCount );
410
408
assertCount (indexName , expectedCount );
411
409
412
410
if (CLUSTER_TYPE != ClusterType .OLD ) {
@@ -416,14 +414,12 @@ public void testIndexingWithFuzzyFilterPostings() throws Exception {
416
414
toBeDeleted .addParameter ("refresh" , "true" );
417
415
toBeDeleted .setJsonEntity ("{\" f1\" : \" delete-me\" }" );
418
416
client ().performRequest (toBeDeleted );
419
- waitForSearchableDocs (indexName , shardCount , replicaCount );
420
417
assertCount (indexName , expectedCount + 6 );
421
418
422
419
logger .info ("--> Delete previously added doc and verify doc count" );
423
420
Request delete = new Request ("DELETE" , "/" + indexName + "/_doc/to_be_deleted" );
424
421
delete .addParameter ("refresh" , "true" );
425
422
client ().performRequest (delete );
426
- waitForSearchableDocs (indexName , shardCount , replicaCount );
427
423
assertCount (indexName , expectedCount + 5 );
428
424
429
425
//forceMergeAndVerify(indexName, shardCount * (1 + replicaCount));
0 commit comments