### CI Link

https://gradle-enterprise.elastic.co/s/ou2sap2dhy3q2/tests/:server:internalClusterTest/org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT/testDataFileFailureDuringSnapshot

### Repro line

./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT.testDataFileFailureDuringSnapshot" -Dtests.seed=37B64CEE1DCEACEB -Dtests.locale=uk -Dtests.timezone=Africa/Lusaka -Druntime.java=17

### Does it reproduce?

Yes

### Applicable branches

main

### Failure history

_No response_

### Failure excerpt

```
java.lang.Exception: Test abandoned because suite timeout was reached. 
    at __randomizedtesting.SeedInfo.seed([37B64CEE1DCEACEB]:0)
```
server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java
)
                )
            );
         (Map.Entry<RepositoryShardId, Set<ShardGeneration>> obsoleteEntry : finalizeSnapshotContext.obsoleteShardGenerations()
            .entrySet()) {
            final String containerPath = shardPath(obsoleteEntry.getKey().index(), obsoleteEntry.getKey().shardId()).buildAsString()
                .substring(prefixPathLen) + INDEX_FILE_PREFIX;
             (ShardGeneration shardGeneration : obsoleteEntry.getValue()) {
                toDelete.add(containerPath + shardGeneration);
            }
        }
        if (toDelete.isEmpty() == false) {
            threadPool.executor(ThreadPool.Names.SNAPSHOT).execute(() -> {
                try {
                    deleteFromContainer(blobContainer(), toDelete.iterator());
                } catch (Exception e) {
                    logger.warn("Failed to clean up old shard generation blobs", e);
                } finally {
                    finalizeSnapshotContext.onDone(snapshotInfo);
                }
            });
        } else {
            finalizeSnapshotContext.onDone(snapshotInfo);
        }
    }
    @Override
    public void getSnapshotInfo(GetSnapshotInfoContext context) {
        // 
        // 
        final int workers = Math.min(threadPool.info(ThreadPool.Names.SNAPSHOT_META).getMax(), context.snapshotIds().size());