This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 7a4bb4631bb1 [SPARK-55359][CORE] Promote `TaskResourceRequest` to
`Stable`
7a4bb4631bb1 is described below
commit 7a4bb4631bb106283888ac8f28aa9daa05a73e31
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Wed Feb 4 22:18:44 2026 -0800
[SPARK-55359][CORE] Promote `TaskResourceRequest` to `Stable`
### What changes were proposed in this pull request?
This PR aims to promote `TaskResourceRequest` to `Stable` at Apache Spark
4.2.0.
### Why are the changes needed?
Apache Spark 3.0.0 introduced `TaskResourceRequest` on 2019-11-25.
- https://github.com/apache/spark/pull/26284
Apache Spark 3.1.0 promoted it to the public `Evolving` API on 2020-06-02.
- https://github.com/apache/spark/pull/28697
Apache Spark 4.0.0 allows fractions by loosing `assertion` only on
2024-01-04.
- https://github.com/apache/spark/pull/43494
There is no change over 2 year and additionally `TaskResourceRequest`
class's member variables and methods has been serving stably over 6 years. We
had better promote it `Stable` from 4.2.0.
### Does this PR introduce _any_ user-facing change?
No behavior change.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #54141 from dongjoon-hyun/SPARK-55359.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../main/scala/org/apache/spark/resource/TaskResourceRequest.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/core/src/main/scala/org/apache/spark/resource/TaskResourceRequest.scala
b/core/src/main/scala/org/apache/spark/resource/TaskResourceRequest.scala
index 9fc0d93373b5..2b9b3cdc6811 100644
--- a/core/src/main/scala/org/apache/spark/resource/TaskResourceRequest.scala
+++ b/core/src/main/scala/org/apache/spark/resource/TaskResourceRequest.scala
@@ -17,7 +17,7 @@
package org.apache.spark.resource
-import org.apache.spark.annotation.{Evolving, Since}
+import org.apache.spark.annotation.{Since, Stable}
/**
* A task resource request. This is used in conjunction with the
[[ResourceProfile]] to
@@ -32,7 +32,7 @@ import org.apache.spark.annotation.{Evolving, Since}
* lets you configure X number of tasks to run on a single
resource,
* ie amount equals 0.5 translates into 2 tasks per resource
address.
*/
-@Evolving
+@Stable
@Since("3.1.0")
class TaskResourceRequest(val resourceName: String, val amount: Double)
extends Serializable {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]