zhijiangW commented on a change in pull request #10083:
[FLINK-14472][runtime]Implement back-pressure monitor with non-blocking outputs.
URL: https://github.com/apache/flink/pull/10083#discussion_r344011851
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/BackPressureSampleableTask.java
##########
@@ -22,13 +22,13 @@
import org.apache.flink.runtime.executiongraph.ExecutionAttemptID;
/**
- * Task interface used by {@link StackTraceSampleService} for back pressure
tracking.
+ * Task interface used by {@link BackPressureSampleService} for back pressure
tracking.
*/
-interface StackTraceSampleableTask {
+public interface BackPressureSampleableTask {
boolean isRunning();
Review comment:
It seems a bit strange to have this method in the interface. This state
should be covered in the specific implementation of `boolean
isBackPressured()`. That means if the task is not running, it indicates non
back pressure. So we do not need to explicitly judge the running state outside.
----------------------------------------------------------------
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]
With regards,
Apache Git Services