[TEST] issue additional flush

This commit is contained in:
Simon Willnauer 2015-04-09 11:56:36 +02:00
parent c9afeccac4
commit 17c06f06ba
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@ public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio
} }
void unloadIndex(String indexName) throws Exception { void unloadIndex(String indexName) throws Exception {
client().admin().indices().prepareFlush(indexName).setWaitIfOngoing(true).setForce(true).get(); // temporary for debugging
ElasticsearchAssertions.assertAcked(client().admin().indices().prepareDelete(indexName).get()); ElasticsearchAssertions.assertAcked(client().admin().indices().prepareDelete(indexName).get());
ElasticsearchAssertions.assertAllFilesClosed(); ElasticsearchAssertions.assertAllFilesClosed();
} }