Skip to content

Commit

Permalink
[apache#886] MR Client may lost data or throw exception when rss.stor…
Browse files Browse the repository at this point in the history
…age.type without MEMORY.
  • Loading branch information
zhengchenyu001 committed May 16, 2023
1 parent 9fbfe42 commit 6afeba4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,6 @@ public void waitSendFinished() {
sendBuffersToServers();
}
long start = System.currentTimeMillis();
long commitDuration = 0;
if (!isMemoryShuffleEnabled) {
long s = System.currentTimeMillis();
sendCommit();
commitDuration = System.currentTimeMillis() - s;
}
while (true) {
// if failed when send data to shuffle server, mark task as failed
if (failedBlockIds.size() > 0) {
Expand All @@ -291,6 +285,12 @@ public void waitSendFinished() {
throw new RssException(errorMsg);
}
}
long commitDuration = 0;
if (!isMemoryShuffleEnabled) {
long s = System.currentTimeMillis();
sendCommit();
commitDuration = System.currentTimeMillis() - s;
}

start = System.currentTimeMillis();
shuffleWriteClient.reportShuffleResult(partitionToServers, appId, 0,
Expand Down

0 comments on commit 6afeba4

Please sign in to comment.