Skip to content

Commit 6f02a9b

Browse files
authored
Use ActionRunnable#wrap not ActionRunnable#run (#69047)
Fixes a bug introduced in #67247.
1 parent 8fba6e4 commit 6f02a9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/RepositoryAnalyzeAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ private BlobContainer getBlobContainer() {
530530

531531
private void onWorkerCompletion() {
532532
if (workerCountdown.countDown()) {
533-
transportService.getThreadPool().executor(ThreadPool.Names.SNAPSHOT).execute(ActionRunnable.run(listener, () -> {
533+
transportService.getThreadPool().executor(ThreadPool.Names.SNAPSHOT).execute(ActionRunnable.wrap(listener, l -> {
534534
final long listingStartTimeNanos = System.nanoTime();
535535
ensureConsistentListing();
536536
final long deleteStartTimeNanos = System.nanoTime();

0 commit comments

Comments
 (0)