You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by yi...@apache.org on 2023/02/03 04:23:47 UTC
[flink] branch master updated: [FLINK-28326][test] Fix unstable test testIdleAndBackPressuredTime
This is an automated email from the ASF dual-hosted git repository.
yingjie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 7980d4b7956 [FLINK-28326][test] Fix unstable test testIdleAndBackPressuredTime
7980d4b7956 is described below
commit 7980d4b7956bbb5952933d6f4c49e27f59c96834
Author: Weijie Guo <re...@163.com>
AuthorDate: Fri Feb 3 12:23:38 2023 +0800
[FLINK-28326][test] Fix unstable test testIdleAndBackPressuredTime
This closes #21815.
---
.../flink/runtime/io/network/partition/ResultPartitionTest.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/ResultPartitionTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/ResultPartitionTest.java
index f66b3bcf9b4..e6df02363a6 100644
--- a/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/ResultPartitionTest.java
+++ b/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/ResultPartitionTest.java
@@ -399,6 +399,10 @@ class ResultPartitionTest {
while (!isInBlockingBufferRequest(requestThread.getStackTrace())) {
Thread.sleep(50);
}
+ // there is an extreme case where the request thread recovers from blocking very
+ // quickly, resulting in a calculated back-pressure time is equal to 0. This is used to
+ // avoid this case.
+ Thread.sleep(5);
// recycle the buffer
buffer.recycleBuffer();
requestThread.join();