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/11/28 14:30:05 UTC
[GitHub] [spark] mridulm commented on a diff in pull request #38790: [SPARK-41254] [YARN] bugfix wrong usage when check YarnAllocator.rpIdToYarnResource key existence
mridulm commented on code in PR #38790:
URL: https://github.com/apache/spark/pull/38790#discussion_r1033613963
##########
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnAllocator.scala:
##########
@@ -298,7 +298,7 @@ private[yarn] class YarnAllocator(
// if a ResourceProfile hasn't been seen yet, create the corresponding YARN Resource for it
private def createYarnResourceForResourceProfile(rp: ResourceProfile): Unit = synchronized {
- if (!rpIdToYarnResource.contains(rp.id)) {
+ if (!rpIdToYarnResource.containsKey(rp.id)) {
Review Comment:
+CC @otterc
--
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