Skip to content

Commit d0a7ab5

Browse files
committed
fix test
1 parent 08ed60a commit d0a7ab5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/core/src/test/java/org/elasticsearch/snapshots/sourceonly/SourceOnlySnapshotShardTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
import org.elasticsearch.indices.recovery.RecoverySettings;
6868
import org.elasticsearch.indices.recovery.RecoveryState;
6969
import org.elasticsearch.repositories.FinalizeSnapshotContext;
70+
import org.elasticsearch.repositories.FinalizeSnapshotContext.UpdatedShardGenerations;
7071
import org.elasticsearch.repositories.IndexId;
7172
import org.elasticsearch.repositories.Repository;
7273
import org.elasticsearch.repositories.ShardGeneration;
@@ -372,7 +373,7 @@ public void testRestoreMinimal() throws IOException {
372373
.build();
373374
repository.finalizeSnapshot(
374375
new FinalizeSnapshotContext(
375-
shardGenerations,
376+
new UpdatedShardGenerations(shardGenerations),
376377
ESBlobStoreRepositoryIntegTestCase.getRepositoryData(repository).getGenId(),
377378
Metadata.builder().put(shard.indexSettings().getIndexMetadata(), false).build(),
378379
new SnapshotInfo(

0 commit comments

Comments
 (0)