dongjoon-hyun commented on a change in pull request #26083: [SPARK-29417][CORE]
Resource Scheduling - add TaskContext.resource java api
URL: https://github.com/apache/spark/pull/26083#discussion_r334257655
##########
File path: core/src/main/scala/org/apache/spark/TaskContext.scala
##########
@@ -185,6 +185,14 @@ abstract class TaskContext extends Serializable {
@Evolving
def resources(): Map[String, ResourceInformation]
+ /**
+ * (java-specific) Resources allocated to the task. The key is the resource
name and the value
+ * is information about the resource. Please refer to
+ * [[org.apache.spark.resource.ResourceInformation]] for specifics.
+ */
+ @Evolving
+ def resourcesJMap(): java.util.Map[String, ResourceInformation]
Review comment:
Ah, I missed that. We need MiMa exclusion.
```
[error] * abstract method resourcesJMap()java.util.Map in class
org.apache.spark.TaskContext is present only in current version
[error] filter with:
ProblemFilters.exclude[ReversedMissingMethodProblem]("org.apache.spark.TaskContext.resourcesJMap")
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]