cxzl25 commented on code in PR #2626:
URL: https://github.com/apache/celeborn/pull/2626#discussion_r1724787160
##########
client/src/main/java/org/apache/celeborn/client/read/CelebornInputStream.java:
##########
@@ -344,6 +344,11 @@ private PartitionReader createReaderWithRetry(
if (isExcluded(location)) {
throw new CelebornIOException("Fetch data from excluded worker! "
+ location);
}
+ // should switch the location at a high level
+ if (fetchChunkRetryCnt == 0 && attemptNumber % 2 == 1 &&
location.hasPeer()) {
+ location = location.getPeer();
Review Comment:
Do we need to consider the case of `pbStreamHandler == null` ?
--
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]