OpenSearch/plugins
David Pilato 3f71772cd2 Azure snapshots can not be restored anymore (#26778)
While working on #26751 and doing some manual integration testing I found that this #22858 removed an important line of our code:

`AzureRepository` overrides default `initializeSnapshot` method which creates metadata files and do other stuff.

But with PR #22858, I wrote:

```java
    @Override
    public void initializeSnapshot(SnapshotId snapshotId, List<IndexId> indices, MetaData clusterMetadata) {
        if (blobStore.doesContainerExist(blobStore.container()) == false) {
            throw new IllegalArgumentException("The bucket [" + blobStore.container() + "] does not exist. Please create it before " +
                " creating an azure snapshot repository backed by it.");
        }
    }
```

instead of

```java
    @Override
    public void initializeSnapshot(SnapshotId snapshotId, List<IndexId> indices, MetaData clusterMetadata) {
        if (blobStore.doesContainerExist(blobStore.container()) == false) {
            throw new IllegalArgumentException("The bucket [" + blobStore.container() + "] does not exist. Please create it before " +
                " creating an azure snapshot repository backed by it.");
        }
        super.initializeSnapshot(snapshotId, indices, clusterMetadata);
    }
```

As we never call `super.initializeSnapshot(...)` files are not created and we can't restore what we saved.

Closes #26777.
2017-09-25 14:35:27 -04:00
..
analysis-icu Unify Settings xcontent reading and writing (#26739) 2017-09-25 13:23:01 +02:00
analysis-kuromoji Unify Settings xcontent reading and writing (#26739) 2017-09-25 13:23:01 +02:00
analysis-phonetic Unify Settings xcontent reading and writing (#26739) 2017-09-25 13:23:01 +02:00
analysis-smartcn Upgrade to Lucene 7.0.0 2017-09-21 19:19:33 -04:00
analysis-stempel Upgrade to Lucene 7.0.0 2017-09-21 19:19:33 -04:00
analysis-ukrainian Upgrade to Lucene 7.0.0 2017-09-21 19:19:33 -04:00
discovery-azure-classic Allow build to directly run under JDK 9 (#25859) 2017-07-27 16:14:04 +02:00
discovery-ec2 update AWS SDK for ECS Task IAM support in discovery-ec2 (#26479) 2017-09-12 10:34:12 +02:00
discovery-file File Discovery: Remove fallback with zen discovery (#26667) 2017-09-19 16:32:34 -07:00
discovery-gce [Docs] "The the" is a great band, but ... (#26644) 2017-09-14 15:08:20 +02:00
examples Allow plugins to plug rescore implementations (#26368) 2017-08-25 13:46:57 -04:00
ingest-attachment Use Java 9 FilePermission model (#26302) 2017-08-22 11:22:00 +09:30
ingest-geoip [Docs] "The the" is a great band, but ... (#26644) 2017-09-14 15:08:20 +02:00
ingest-user-agent update ingest-user-agent regexes.yml (#25608) 2017-07-10 08:43:11 -07:00
jvm-example Remove path.conf setting 2017-06-26 15:18:29 -04:00
mapper-murmur3 Remove `_index` fielddata hack if cluster alias is present (#26082) 2017-08-08 09:24:24 +02:00
mapper-size Unify the result interfaces from get and search in Java client (#25361) 2017-06-29 11:35:28 +02:00
repository-azure Azure snapshots can not be restored anymore (#26778) 2017-09-25 14:35:27 -04:00
repository-gcs Ensure that gcs client creation is privileged (#25938) 2017-07-27 22:28:47 -05:00
repository-hdfs Upgrade to Log4j 2.9.1 2017-09-22 11:57:06 -04:00
repository-s3 (refactor) some opportunities to use diamond operator (#25585) 2017-08-15 16:36:42 -06:00
store-smb Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
build.gradle Plugins: Include license and notice files in zip (#23191) 2017-02-15 11:23:12 -08:00