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/25 18:44:50 UTC
[GitHub] [spark] srowen commented on a diff in pull request #38790: [SPARK-41254] [YARN] bugfix wrong usage when check YarnAllocator.rpIdToYarnResource key existence
srowen commented on code in PR #38790:
URL: https://github.com/apache/spark/pull/38790#discussion_r1032647124
##########
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:
Looks like a clean fix, or at least it now does what this appears to want to do
--
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