Skip to content
Closed
Changes from 2 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 @@ -467,7 +467,9 @@ private PartitionReader createReaderWithRetry(
lastException = e;
shuffleClient.excludeFailedFetchLocation(location.hostAndFetchPort(), e);
fetchChunkRetryCnt++;
if (location.hasPeer() && !readSkewPartitionWithoutMapRange) {
if (location.hasPeer()
&& !isExcluded(location.getPeer())
&& !readSkewPartitionWithoutMapRange) {
// fetchChunkRetryCnt % 2 == 0 means both replicas have been tried,
// so sleep before next try.
if (fetchChunkRetryCnt % 2 == 0) {
Expand All @@ -479,6 +481,7 @@ private PartitionReader createReaderWithRetry(
fetchChunkMaxRetry,
location,
e);
location = location.getPeer();
if (pbStreamHandler != null) {
try {
TransportClient client =
Expand All @@ -501,7 +504,6 @@ private PartitionReader createReaderWithRetry(
}
pbStreamHandler = null;
}
location = location.getPeer();
} else {
logger.warn(
"CreatePartitionReader failed {}/{} times for location {}, retry the same location",
Expand Down
Loading