CacheTests test fix.

This commit is contained in:
Martijn van Groningen 2013-04-12 19:14:38 +02:00
parent 80dbca0809
commit bf21466291
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ public class CacheTests extends AbstractNodesTests {
assertThat(indicesStats.getTotal().getFilterCache().getMemorySizeInBytes(), greaterThan(0l)); assertThat(indicesStats.getTotal().getFilterCache().getMemorySizeInBytes(), greaterThan(0l));
client.admin().indices().prepareClearCache().execute().actionGet(); client.admin().indices().prepareClearCache().execute().actionGet();
Thread.sleep(100); // Make sure the filter cache entries have been removed...
nodesStats = client.admin().cluster().prepareNodesStats().setIndices(true) nodesStats = client.admin().cluster().prepareNodesStats().setIndices(true)
.execute().actionGet(); .execute().actionGet();
assertThat(nodesStats.getNodes()[0].getIndices().getFieldData().getMemorySizeInBytes(), equalTo(0l)); assertThat(nodesStats.getNodes()[0].getIndices().getFieldData().getMemorySizeInBytes(), equalTo(0l));