mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Remove unnecessary optimize call that destabelizes test
This commit is contained in:
parent
619c46a2a3
commit
67efe8777a
@ -108,9 +108,6 @@ public class HotThreadsTest extends ElasticsearchIntegrationTest {
|
|||||||
client().prepareIndex("test", "type1", "2").setSource("field1", "value2"),
|
client().prepareIndex("test", "type1", "2").setSource("field1", "value2"),
|
||||||
client().prepareIndex("test", "type1", "3").setSource("field1", "value3"));
|
client().prepareIndex("test", "type1", "3").setSource("field1", "value3"));
|
||||||
ensureSearchable();
|
ensureSearchable();
|
||||||
if (randomBoolean()) {
|
|
||||||
optimize();
|
|
||||||
}
|
|
||||||
while(latch.getCount() > 0) {
|
while(latch.getCount() > 0) {
|
||||||
assertHitCount(
|
assertHitCount(
|
||||||
client().prepareSearch()
|
client().prepareSearch()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user