[
https://issues.apache.org/jira/browse/FLINK-7318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16107515#comment-16107515
]
ASF GitHub Bot commented on FLINK-7318:
---------------------------------------
Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/4431#discussion_r130397834
--- Diff:
flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/BackPressureStatsTracker.java
---
@@ -177,7 +177,7 @@ public boolean
triggerStackTraceSample(ExecutionJobVertex vertex) {
LOG.debug("Triggering stack
trace sample for tasks: " + Arrays.toString(vertex.getTaskVertices()));
}
- Future<StackTraceSample> sample =
coordinator.triggerStackTraceSample(
+ CompletableFuture<StackTraceSample>
sample = coordinator.triggerStackTraceSample(
--- End diff --
The Java `Future` does not allow you to apply transformations to it. That
was only introduced with Java 8's `CompletableFuture`.
> Remove Flink's futures from StackTraceSampleCoordinator
> -------------------------------------------------------
>
> Key: FLINK-7318
> URL: https://issues.apache.org/jira/browse/FLINK-7318
> Project: Flink
> Issue Type: Sub-task
> Components: Distributed Coordination
> Affects Versions: 1.4.0
> Reporter: Till Rohrmann
> Assignee: Till Rohrmann
> Priority: Minor
> Fix For: 1.4.0
>
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)