Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public void write(Iterator<Product2<K, V>> records) {
} catch (Exception e) {
taskFailureCallback.apply(taskId);
if (shuffleManager.isRssResubmitStage()) {
throw throwFetchFailedIfNecessary(e);
throwFetchFailedIfNecessary(e);
} else {
throw e;
}
Expand Down Expand Up @@ -466,7 +466,7 @@ private static ShuffleManagerClient createShuffleManagerClient(String host, int
return ShuffleManagerClientFactory.getInstance().createShuffleManagerClient(grpc, host, port);
}

private RssException throwFetchFailedIfNecessary(Exception e) {
private void throwFetchFailedIfNecessary(Exception e) {
// The shuffleServer is registered only when a Block fails to be sent
if (e instanceof RssSendFailedException) {
Map<Long, BlockingQueue<ShuffleServerInfo>> failedBlockIds =
Expand Down Expand Up @@ -506,12 +506,12 @@ private RssException throwFetchFailedIfNecessary(Exception e) {
FetchFailedException ffe =
RssSparkShuffleUtils.createFetchFailedException(
shuffleId, -1, taskContext.stageAttemptNumber(), e);
return new RssException(ffe);
throw new RssException(ffe);
}
} catch (IOException ioe) {
LOG.info("Error closing shuffle manager client with error:", ioe);
}
}
return new RssException(e);
throw new RssException(e);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ private boolean isMemoryShuffleEnabled(String storageType) {
}

@Override
public void write(Iterator<Product2<K, V>> records) throws IOException {
public void write(Iterator<Product2<K, V>> records) {
try {
writeImpl(records);
} catch (Exception e) {
taskFailureCallback.apply(taskId);
if (shuffleManager.isRssResubmitStage()) {
throw throwFetchFailedIfNecessary(e);
throwFetchFailedIfNecessary(e);
} else {
throw e;
}
Expand Down Expand Up @@ -501,7 +501,7 @@ private static ShuffleManagerClient createShuffleManagerClient(String host, int
return ShuffleManagerClientFactory.getInstance().createShuffleManagerClient(grpc, host, port);
}

private RssException throwFetchFailedIfNecessary(Exception e) {
private void throwFetchFailedIfNecessary(Exception e) {
// The shuffleServer is registered only when a Block fails to be sent
if (e instanceof RssSendFailedException) {
Map<Long, BlockingQueue<ShuffleServerInfo>> failedBlockIds =
Expand Down Expand Up @@ -541,12 +541,12 @@ private RssException throwFetchFailedIfNecessary(Exception e) {
FetchFailedException ffe =
RssSparkShuffleUtils.createFetchFailedException(
shuffleId, -1, taskContext.stageAttemptNumber(), e);
return new RssException(ffe);
throw new RssException(ffe);
}
} catch (IOException ioe) {
LOG.info("Error closing shuffle manager client with error:", ioe);
}
}
return new RssException(e);
throw new RssException(e);
}
}