**Build scan:**
https://gradle-enterprise.elastic.co/s/6u2mspnlx5m56/tests/:server:test/org.elasticsearch.snapshots.SnapshotResiliencyTests/testConcurrentSnapshotDeleteAndDeleteIndex

**Reproduction line:**
```
./gradlew ':server:test' --tests "org.elasticsearch.snapshots.SnapshotResiliencyTests.testConcurrentSnapshotDeleteAndDeleteIndex" -Dtests.seed=A5148D4F4A8D82B8 -Dtests.locale=ko -Dtests.timezone=Asia/Yakutsk -Druntime.java=20
```

**Applicable branches:**
main

**Reproduces locally?:**
Didn't try

**Failure history:**
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.snapshots.SnapshotResiliencyTests&tests.test=testConcurrentSnapshotDeleteAndDeleteIndex

**Failure excerpt:**
```
java.lang.Exception: Test abandoned because suite timeout was reached.

  at __randomizedtesting.SeedInfo.seed([A5148D4F4A8D82B8]:0)

```
test/framework/src/main/java/org/elasticsearch/common/util/concurrent/DeterministicTaskQueue.java
public void runAllTasks() {
        while (hasDeferredTasks() || hasRunnableTasks()) {
            if (hasDeferredTasks() && random.nextBoolean()) {
                advanceTime();
            } else if (hasRunnableTasks()) {
                runRandomTask();
            }
        }
    }
    public void runAllTasksInTimeOrder() {
        while (hasDeferredTasks() || hasRunnableTasks()) {
            if (hasRunnableTasks()) {
                runRandomTask();
            } else {
                advanceTime();
            }
        }
    }
    /**
     * @return whether there are any runnable tasks.
     */
    public boolean hasRunnableTasks() {
        return runnableTasks.isEmpty() == false;
    }
    /**
     * @return whether there are any deferred tasks, i.e. tasks that are scheduled for the future.
     */
    public boolean hasDeferredTasks() {
        return deferredTasks.isEmpty() == false;
    }