|
33 | 33 | import org.elasticsearch.cluster.ClusterState;
|
34 | 34 | import org.elasticsearch.common.Strings;
|
35 | 35 | import org.elasticsearch.common.base.Predicate;
|
36 |
| -import org.elasticsearch.common.logging.ESLogger; |
37 |
| -import org.elasticsearch.common.logging.ESLoggerFactory; |
38 | 36 | import org.elasticsearch.common.settings.ImmutableSettings;
|
39 | 37 | import org.elasticsearch.common.settings.Settings;
|
40 | 38 | import org.elasticsearch.common.settings.SettingsFilter;
|
|
64 | 62 | transportClientRatio = 0.0)
|
65 | 63 | public class AzureSnapshotRestoreITest extends AbstractAzureTest {
|
66 | 64 |
|
67 |
| - private static ESLogger logger = ESLoggerFactory.getLogger(AzureSnapshotRestoreITest.class.getName()); |
68 |
| - |
69 | 65 | private String getRepositoryPath() {
|
70 | 66 | String testName = "it-".concat(Strings.toUnderscoreCase(getTestName()).replaceAll("_", "-"));
|
71 | 67 | return testName.contains(" ") ? Strings.split(testName, " ")[0] : testName;
|
@@ -370,6 +366,7 @@ public boolean apply(Object obj) {
|
370 | 366 | ).get();
|
371 | 367 | client().admin().cluster().prepareDeleteRepository("test-repo").get();
|
372 | 368 | try {
|
| 369 | + logger.info("--> remove container [{}]", container); |
373 | 370 | cleanRepositoryFiles(container);
|
374 | 371 | } catch (StorageException | URISyntaxException e) {
|
375 | 372 | // We can ignore that as we just try to clean after the test
|
@@ -478,7 +475,6 @@ public static void cleanRepositoryFiles(String... containers) throws StorageExce
|
478 | 475 |
|
479 | 476 | AzureStorageService client = new AzureStorageServiceImpl(settings, settingsFilter);
|
480 | 477 | for (String container : containers) {
|
481 |
| - logger.info("--> remove container [{}]", container); |
482 | 478 | client.removeContainer(container);
|
483 | 479 | }
|
484 | 480 | }
|
|
0 commit comments