Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,8 @@ public CompletableFuture<Collection<String>> requestMetricQueryServiceAddresses(
@Override
public CompletableFuture<ThreadDumpInfo> requestThreadDump(Duration timeout) {
int stackTraceMaxDepth = configuration.get(ClusterOptions.THREAD_DUMP_STACKTRACE_MAX_DEPTH);
return CompletableFuture.completedFuture(ThreadDumpInfo.dumpAndCreate(stackTraceMaxDepth));
return CompletableFuture.supplyAsync(
() -> ThreadDumpInfo.dumpAndCreate(stackTraceMaxDepth), ioExecutor);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,8 @@ public CompletableFuture<ThreadDumpInfo> requestThreadDump(Duration timeout) {
taskManagerConfiguration
.getConfiguration()
.get(ClusterOptions.THREAD_DUMP_STACKTRACE_MAX_DEPTH);
return CompletableFuture.completedFuture(ThreadDumpInfo.dumpAndCreate(stacktraceMaxDepth));
return CompletableFuture.supplyAsync(
() -> ThreadDumpInfo.dumpAndCreate(stacktraceMaxDepth), ioExecutor);
}

@Override
Expand Down