You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uniffle.apache.org by zh...@apache.org on 2024/09/06 03:37:04 UTC
(incubator-uniffle) branch master updated: [#1987][FOLLOWUP] fix(tez): Application may get stuck when exception occurs. (#2075)
This is an automated email from the ASF dual-hosted git repository.
zhengchenyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git
The following commit(s) were added to refs/heads/master by this push:
new f83390c9d [#1987][FOLLOWUP] fix(tez): Application may get stuck when exception occurs. (#2075)
f83390c9d is described below
commit f83390c9d1c904db2a2aa3851740a74d8031d1c7
Author: zhengchenyu <zh...@163.com>
AuthorDate: Fri Sep 6 11:36:59 2024 +0800
[#1987][FOLLOWUP] fix(tez): Application may get stuck when exception occurs. (#2075)
### What changes were proposed in this pull request?
Forget to add skippedInputCounter in #1992 so that application will stuck when there are some empty partitions.
### Why are the changes needed?
Fix: #1987
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
test in production cluster and unit test.
---
.../library/common/shuffle/orderedgrouped/RssShuffleScheduler.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/client-tez/src/main/java/org/apache/tez/runtime/library/common/shuffle/orderedgrouped/RssShuffleScheduler.java b/client-tez/src/main/java/org/apache/tez/runtime/library/common/shuffle/orderedgrouped/RssShuffleScheduler.java
index ed8caf6c7..3856d0f1f 100644
--- a/client-tez/src/main/java/org/apache/tez/runtime/library/common/shuffle/orderedgrouped/RssShuffleScheduler.java
+++ b/client-tez/src/main/java/org/apache/tez/runtime/library/common/shuffle/orderedgrouped/RssShuffleScheduler.java
@@ -1147,7 +1147,8 @@ class RssShuffleScheduler extends ShuffleScheduler {
}
private boolean allInputTaskAttemptDone() {
- return this.partitionIdToSuccessTezTasks.values().stream().mapToInt(s -> s.size()).sum()
+ return (this.partitionIdToSuccessTezTasks.values().stream().mapToInt(s -> s.size()).sum()
+ + skippedInputCounter.getValue())
== numInputs;
}