jerqi commented on code in PR #2280:
URL:
https://github.com/apache/incubator-uniffle/pull/2280#discussion_r1875201057
##########
client-spark/common/src/main/java/org/apache/uniffle/shuffle/manager/ShuffleManagerGrpcService.java:
##########
@@ -466,16 +490,36 @@ public void incPartitionFetchFailure(int stageAttempt,
int partition) {
});
}
- public int getPartitionFetchFailureNum(int stageAttempt, int partition) {
+ public boolean getPartitionFetchFailureNum(
+ int stageAttempt, int partition, RssShuffleManagerInterface
shuffleManager) {
return withReadLock(
() -> {
if (this.stageAttempt != stageAttempt) {
- return 0;
+ return false;
} else {
- return this.partitions[partition];
+ if (this.partitions[partition] >=
shuffleManager.getMaxFetchFailures()) {
+ return true;
+ } else {
+ return false;
+ }
}
});
}
+
+ public void setClearedMapTrackerBlock(boolean isCleared) {
Review Comment:
Could you give a better name for this?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]