|
@@ -29,6 +29,7 @@ import org.elasticsearch.snapshots.SnapshotId;
|
|
import org.elasticsearch.snapshots.SnapshotInfo;
|
|
import org.elasticsearch.snapshots.SnapshotInfo;
|
|
import org.elasticsearch.snapshots.SnapshotState;
|
|
import org.elasticsearch.snapshots.SnapshotState;
|
|
import org.elasticsearch.snapshots.SnapshotsService;
|
|
import org.elasticsearch.snapshots.SnapshotsService;
|
|
|
|
+import org.elasticsearch.threadpool.ThreadPool;
|
|
import org.elasticsearch.xcontent.XContentBuilder;
|
|
import org.elasticsearch.xcontent.XContentBuilder;
|
|
import org.elasticsearch.xcontent.XContentParser;
|
|
import org.elasticsearch.xcontent.XContentParser;
|
|
|
|
|
|
@@ -377,6 +378,7 @@ public final class RepositoryData {
|
|
* @return map of index to index metadata blob id to delete
|
|
* @return map of index to index metadata blob id to delete
|
|
*/
|
|
*/
|
|
public Map<IndexId, Collection<String>> indexMetaDataToRemoveAfterRemovingSnapshots(Collection<SnapshotId> snapshotIds) {
|
|
public Map<IndexId, Collection<String>> indexMetaDataToRemoveAfterRemovingSnapshots(Collection<SnapshotId> snapshotIds) {
|
|
|
|
+ assert ThreadPool.assertCurrentThreadPool(ThreadPool.Names.SNAPSHOT);
|
|
Iterator<IndexId> indicesForSnapshot = indicesToUpdateAfterRemovingSnapshot(snapshotIds);
|
|
Iterator<IndexId> indicesForSnapshot = indicesToUpdateAfterRemovingSnapshot(snapshotIds);
|
|
final Set<String> allRemainingIdentifiers = indexMetaDataGenerations.lookup.entrySet()
|
|
final Set<String> allRemainingIdentifiers = indexMetaDataGenerations.lookup.entrySet()
|
|
.stream()
|
|
.stream()
|