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_r342972014
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/legacy/backpressure/BackPressureStatsTrackerImpl.java
 ##########
 @@ -50,82 +51,60 @@
  * Back pressure statistics tracker.
  *
  * <p>Back pressure is determined by sampling running tasks. If a task is
- * slowed down by back pressure it will be stuck in memory requests to a
- * {@link org.apache.flink.runtime.io.network.buffer.LocalBufferPool}.
- *
- * <p>The back pressured stack traces look like this:
- *
- * <pre>
- * java.lang.Object.wait(Native Method)
- * o.a.f.[...].LocalBufferPool.requestBuffer(LocalBufferPool.java:163)
- * o.a.f.[...].LocalBufferPool.requestBufferBlocking(LocalBufferPool.java:133) 
<--- BLOCKING
- * request
- * [...]
- * </pre>
+ * slowed down by back pressure, there should be no free buffers in output
+ * {@link org.apache.flink.runtime.io.network.buffer.BufferPool} of the task.
  */
 public class BackPressureStatsTrackerImpl implements BackPressureStatsTracker {
 
        private static final Logger LOG = 
LoggerFactory.getLogger(BackPressureStatsTrackerImpl.class);
 
-       /** Maximum stack trace depth for samples. */
-       static final int MAX_STACK_TRACE_DEPTH = 8;
-
-       /** Expected class name for back pressure indicating stack trace 
element. */
-       static final String EXPECTED_CLASS_NAME = 
"org.apache.flink.runtime.io.network.buffer.LocalBufferPool";
-
-       /** Expected method name for back pressure indicating stack trace 
element. */
-       static final String EXPECTED_METHOD_NAME = 
"requestBufferBuilderBlocking";
-
        /** Lock guarding trigger operations. */
        private final Object lock = new Object();
 
-       /* Stack trace sample coordinator. */
-       private final StackTraceSampleCoordinator coordinator;
+       /** Back pressure sample coordinator. */
 
 Review comment:
   This comment can be removed because of useless information

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to