[TEST] All shards should be allocated before snapshotting.
This commit is contained in:
parent
dbd5cbee7f
commit
5631bbb02b
|
@ -325,6 +325,8 @@ public class IndicesOptionsIntegrationTests extends ElasticsearchIntegrationTest
|
||||||
@Test
|
@Test
|
||||||
public void testWildcardBehaviour_snapshotRestore() throws Exception {
|
public void testWildcardBehaviour_snapshotRestore() throws Exception {
|
||||||
createIndex("foobar");
|
createIndex("foobar");
|
||||||
|
ensureGreen("foobar");
|
||||||
|
waitForRelocation();
|
||||||
|
|
||||||
PutRepositoryResponse putRepositoryResponse = client().admin().cluster().preparePutRepository("dummy-repo")
|
PutRepositoryResponse putRepositoryResponse = client().admin().cluster().preparePutRepository("dummy-repo")
|
||||||
.setType("fs").setSettings(ImmutableSettings.settingsBuilder().put("location", newTempDir())).get();
|
.setType("fs").setSettings(ImmutableSettings.settingsBuilder().put("location", newTempDir())).get();
|
||||||
|
@ -341,7 +343,7 @@ public class IndicesOptionsIntegrationTests extends ElasticsearchIntegrationTest
|
||||||
|
|
||||||
assertAcked(prepareCreate("barbaz"));
|
assertAcked(prepareCreate("barbaz"));
|
||||||
//TODO: temporary work-around for #5531
|
//TODO: temporary work-around for #5531
|
||||||
ensureGreen();
|
ensureGreen("barbaz");
|
||||||
waitForRelocation();
|
waitForRelocation();
|
||||||
options = IndicesOptions.fromOptions(false, false, true, false);
|
options = IndicesOptions.fromOptions(false, false, true, false);
|
||||||
verify(snapshot("snap3", "foo*", "bar*").setIndicesOptions(options), false);
|
verify(snapshot("snap3", "foo*", "bar*").setIndicesOptions(options), false);
|
||||||
|
|
Loading…
Reference in New Issue