AngersZhuuuu commented on a change in pull request #30139:
URL: https://github.com/apache/spark/pull/30139#discussion_r519699103
##########
File path:
common/network-common/src/main/java/org/apache/spark/network/server/ChunkFetchRequestHandler.java
##########
@@ -88,12 +88,14 @@ public void processFetchRequest(
logger.trace("Received req from {} to fetch block {}",
getRemoteAddress(channel),
msg.streamChunkId);
}
- long chunksBeingTransferred = streamManager.chunksBeingTransferred();
- if (chunksBeingTransferred >= maxChunksBeingTransferred) {
- logger.warn("The number of chunks being transferred {} is above {},
close the connection.",
- chunksBeingTransferred, maxChunksBeingTransferred);
- channel.close();
- return;
+ if (maxChunksBeingTransferred < Long.MAX_VALUE) {
Review comment:
> Shouldn't we revert the change of `AtomicLong` and only keep `if
(maxChunksBeingTransferred < Long.MAX_VALUE)`?
All right, I didn't get your point of comment
https://github.com/apache/spark/pull/30139/files#r519647116, update now
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]