### CI Link

https://gradle-enterprise.elastic.co/s/4accu24s4cbyc

### Repro line

./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.get.ShardMultiGetFomTranslogActionIT.testShardMultiGetFromTranslog" -Dtests.seed=AC01D0C25C12539E -Dtests.locale=hr-HR -Dtests.timezone=Africa/Windhoek -Druntime.java=20

### Does it reproduce?

Yes

### Applicable branches

main

### Failure history

Test was introduced today via https://github.com/elastic/elasticsearch/pull/96492

### Failure excerpt

```java
org.elasticsearch.get.ShardMultiGetFomTranslogActionIT > testShardMultiGetFromTranslog FAILED
    java.lang.AssertionError
        at __randomizedtesting.SeedInfo.seed([AC01D0C25C12539E:D5637AF36B6B21E3]:0)
        at org.junit.Assert.fail(Assert.java:86)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at org.junit.Assert.assertNotNull(Assert.java:712)
        at org.junit.Assert.assertNotNull(Assert.java:722)
        at org.elasticsearch.get.ShardMultiGetFomTranslogActionIT.testShardMultiGetFromTranslog(ShardMultiGetFomTranslogActionIT.java:105)
```


server/src/internalClusterTest/java/org/elasticsearch/get/ShardMultiGetFomTranslogActionIT.java
var indexResponse = client().prepareIndex("test").setId("0").setSource("field1", "value2").get();
        client().prepareGet("test", indexResponse.getId()).get();
        var mgetIds = List.of("1", "2", "3");
        var response = getFromTranslog(indexOrAlias(), mgetIds);
        var multiGetShardResponse = response.multiGetShardResponse();
        assertThat(getLocations(multiGetShardResponse).size(), equalTo(3));
        assertThat(getFailures(multiGetShardResponse).size(), equalTo(3));
        assertTrue(getFailures(multiGetShardResponse).stream().allMatch(Objects::isNull));
        assertThat(getResponses(multiGetShardResponse).size(), equalTo(3));
        assertTrue(getResponses(multiGetShardResponse).stream().allMatch(Objects::isNull));
        
        assertThat(response.segmentGeneration(), equalTo(-1L));
        var bulkRequest = client().prepareBulk();
        var idsToIndex = randomSubsetOf(2, mgetIds);
        for (String id : idsToIndex) {
            bulkRequest.add(new IndexRequest("test").id(id).source("field1", "value1"));
        }
        bulkRequest.setRefreshPolicy(WriteRequest.RefreshPolicy.NONE);
        var bulkResponse = bulkRequest.get();
        assertNoFailures(bulkResponse);
        response = getFromTranslog(indexOrAlias(), mgetIds);
        multiGetShardResponse = response.multiGetShardResponse();
        assertThat(getLocations(multiGetShardResponse).size(), equalTo(3));
        assertThat(getFailures(multiGetShardResponse).size(), equalTo(3));
        assertTrue(getFailures(multiGetShardResponse).stream().allMatch(Objects::isNull));
        var getResponses = getResponses(multiGetShardResponse);
        assertThat(getResponses.size(), equalTo(3));
        for (int location = 0; location < mgetIds.size(); location++) {
            var id = mgetIds.get(location);