mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
Calling cache.cleanUp() is kind of like calling System.gc(), meaning that we should never have (non-test) things that rely on this functionality. For the field data and filter cache, we already have a periodic process that runs this .cleanUp(), so there is no need to block index closing/clearing on it. Instead, we can clean the field data cache in InternalTestCluster before we check the circuit breaker. This can help tests that time out because cleaning the cache is taking too long