Spark's default resource profile id is 0. In stage level resource profile, the first returned resource id is also 0 which would lead to a collision.
val UNKNOWN_RESOURCE_PROFILE_ID = -1
val DEFAULT_RESOURCE_PROFILE_ID = 0
private lazy val nextProfileId = new AtomicInteger(0)
|
private lazy val nextProfileId = new AtomicInteger(0) |
|
val DEFAULT_RESOURCE_PROFILE_ID = 0 |
Spark's default resource profile id is 0. In stage level resource profile, the first returned resource id is also 0 which would lead to a collision.
spark/core/src/main/scala/org/apache/spark/resource/ResourceProfile.scala
Line 365 in f883693
spark/core/src/main/scala/org/apache/spark/resource/ResourceProfile.scala
Line 363 in f883693