Skip to content

Commit 6a21cc9

Browse files
committed
Drop the method call and lambda
1 parent 184f80d commit 6a21cc9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3484,12 +3484,10 @@ private static void ensureNotAborted(ShardId shardId, SnapshotId snapshotId, Ind
34843484
// A normally running shard snapshot should be in stage INIT or STARTED. And we know it's not in PAUSING or ABORTED because
34853485
// the ensureNotAborted() call above did not throw. The remaining options don't make sense, if they ever happen.
34863486
logger.error(
3487-
() -> Strings.format(
3488-
"Shard snapshot found an unexpected state. ShardId [%s], SnapshotID [%s], Stage [%s]",
3489-
shardId,
3490-
snapshotId,
3491-
shardSnapshotStage
3492-
)
3487+
"Shard snapshot found an unexpected state. ShardId [{}], SnapshotID [{}], Stage [{}]",
3488+
shardId,
3489+
snapshotId,
3490+
shardSnapshotStage
34933491
);
34943492
assert false;
34953493
}

0 commit comments

Comments
 (0)