disable CheckIndex for these no-ack tests

This commit is contained in:
Michael McCandless 2014-09-26 04:07:51 -04:00 committed by mikemccand
parent 526b464025
commit 87e9aba2ac
1 changed files with 15 additions and 3 deletions

View File

@ -143,7 +143,11 @@ public class AckTests extends ElasticsearchIntegrationTest {
@Test
public void testDeleteWarmerAcknowledgement() {
createIndex("test");
// TODO: this test fails CheckIndex test for some reason ... seems like the index is being deleted while we run CheckIndex??
assertAcked(client().admin().indices().prepareCreate("test").setSettings(
ImmutableSettings.settingsBuilder()
// Never run CheckIndex in the end:
.put(MockFSDirectoryService.CHECK_INDEX_ON_CLOSE, false).build()));
ensureGreen();
assertAcked(client().admin().indices().preparePutWarmer("custom_warmer")
@ -159,7 +163,11 @@ public class AckTests extends ElasticsearchIntegrationTest {
@Test
public void testDeleteWarmerNoAcknowledgement() throws InterruptedException {
createIndex("test");
// TODO: this test fails CheckIndex test for some reason ... seems like the index is being deleted while we run CheckIndex??
assertAcked(client().admin().indices().prepareCreate("test").setSettings(
ImmutableSettings.settingsBuilder()
// Never run CheckIndex in the end:
.put(MockFSDirectoryService.CHECK_INDEX_ON_CLOSE, false).build()));
ensureGreen();
assertAcked(client().admin().indices().preparePutWarmer("custom_warmer")
@ -356,7 +364,11 @@ public class AckTests extends ElasticsearchIntegrationTest {
@Test
public void testIndicesAliasesNoAcknowledgement() {
createIndex("test");
// TODO: this test fails CheckIndex test for some reason ... seems like the index is being deleted while we run CheckIndex??
assertAcked(client().admin().indices().prepareCreate("test").setSettings(
ImmutableSettings.settingsBuilder()
// Never run CheckIndex in the end:
.put(MockFSDirectoryService.CHECK_INDEX_ON_CLOSE, false).build()));
IndicesAliasesResponse indicesAliasesResponse = client().admin().indices().prepareAliases().addAlias("test", "alias").setTimeout("0s").get();
assertThat(indicesAliasesResponse.isAcknowledged(), equalTo(false));