Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jerqi committed Aug 29, 2023
1 parent f7cf444 commit f8df6c3
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,23 +326,18 @@ protected void checkBlockSendResult(Set<Long> blockIds) {
if (blockIds.isEmpty()) {
break;
}
LOG.info("Wait " + blockIds.size() + " blocks sent to shuffle server");
if (finishEventQueue.isEmpty()) {
remainingMs = Math.max(end - System.currentTimeMillis(), 0);
Object event = finishEventQueue.poll(remainingMs, TimeUnit.MILLISECONDS);
if (event == null) {
break;
}
}
} catch (InterruptedException e) {
interrupted = true;
} finally {
remainingMs = end - System.currentTimeMillis();
if (remainingMs < 0) {
remainingMs = 0;
}
}
}
if (remainingMs <= 0) {
if (end - System.currentTimeMillis() <= 0) {
String errorMsg =
"Timeout: Task["
+ taskId
Expand Down

0 comments on commit f8df6c3

Please sign in to comment.