zentol commented on a change in pull request #15054:
URL: https://github.com/apache/flink/pull/15054#discussion_r604815521
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutorGateway.java
##########
@@ -266,4 +269,17 @@ void heartbeatFromJobManager(
* @return the {@link ThreadDumpInfo} for this TaskManager.
*/
CompletableFuture<ThreadDumpInfo> requestThreadDump(@RpcTimeout Time
timeout);
+
+ /**
+ * Request a thread info sample from the given task.
+ *
+ * @param taskExecutionAttemptId identifying the task to sample
+ * @param requestParams parameters of the request
+ * @param timeout of the request
+ * @return Future of stack trace sample response
+ */
+ CompletableFuture<TaskThreadInfoResponse> requestThreadInfoSamples(
+ ExecutionAttemptID taskExecutionAttemptId,
+ ThreadInfoSamplesRequest requestParams,
+ Duration timeout);
Review comment:
```suggestion
@RpcTimeout Time timeout);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]