You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/04/13 13:42:24 UTC
[GitHub] [spark] srowen commented on a diff in pull request #36179: [MINOR] Update the numBlocksInFlightPerAddress of ShuffleBlockFetcherIterator
srowen commented on code in PR #36179:
URL: https://github.com/apache/spark/pull/36179#discussion_r849498103
##########
core/src/main/scala/org/apache/spark/storage/ShuffleBlockFetcherIterator.scala:
##########
@@ -1135,8 +1134,7 @@ final class ShuffleBlockFetcherIterator(
} else {
sendRequest(request)
}
- numBlocksInFlightPerAddress(remoteAddress) =
- numBlocksInFlightPerAddress.getOrElse(remoteAddress, 0) + request.blocks.size
+ numBlocksInFlightPerAddress.getOrElse(remoteAddress, 0) += request.blocks.size
Review Comment:
It doesn't seem like this can work/compile? the result of getOrElse is an int. Not sure if we can optimize this one.
The rest looks fine.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org