mridulm commented on code in PR #56516:
URL: https://github.com/apache/spark/pull/56516#discussion_r3530245972


##########
core/src/main/scala/org/apache/spark/resource/ResourceProfileManager.scala:
##########
@@ -160,19 +190,4 @@ private[spark] class ResourceProfileManager(sparkConf: 
SparkConf,
       readLock.unlock()
     }
   }
-
-  /*
-   * If the ResourceProfile passed in is equivalent to an existing one, return 
the
-   * existing one, other return None
-   */
-  def getEquivalentProfile(rp: ResourceProfile): Option[ResourceProfile] = {

Review Comment:
   While `ResourceProfileManager` is `private[spark]` - it is used (this 
specific method `getEquivalentProfile` as well) in projects like Apache Gluten 
([ref](https://github.com/apache/gluten/blob/8a987f8b81f61b429123431e01d90996c131ad04/gluten-substrait/src/main/scala/org/apache/spark/sql/execution/GlutenAutoAdjustStageResourceProfile.scala#L175)).
   Given [this 
interaction](https://github.com/apache/spark/pull/56516#discussion_r3530163738) 
as well, we should preserve this.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to