You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dongjoon-hyun (via GitHub)" <gi...@apache.org> on 2026/03/30 19:38:18 UTC
[PR] [SPARK-56292] Make `(App|Cluster)ReconcileStep` abstract classes `sealed` [spark-kubernetes-operator]
dongjoon-hyun opened a new pull request, #606:
URL: https://github.com/apache/spark-kubernetes-operator/pull/606
### What changes were proposed in this pull request?
This PR makes `AppReconcileStep` and `ClusterReconcileStep` `sealed` abstract classes and marks all their subclasses as `final`.
**`AppReconcileStep`** permits:
- `AppCleanUpStep`
- `AppInitStep`
- `AppResourceObserveStep`
- `AppRunningStep`
- `AppUnknownStateStep`
- `AppValidateStep`
**`ClusterReconcileStep`** permits:
- `ClusterInitStep`
- `ClusterTerminatedStep`
- `ClusterUnknownStateStep`
- `ClusterValidateStep`
### Why are the changes needed?
This follows the same pattern as SPARK-56291 (`BaseStateSummary`). Using `sealed` classes explicitly restricts permitted subclasses, improving type safety and enabling exhaustive pattern matching in switch expressions with Java 21.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the existing CI.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code with claude-opus-4-6
--
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
Re: [PR] [SPARK-56292] Make `(App|Cluster)ReconcileStep` abstract classes `sealed` [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #606:
URL: https://github.com/apache/spark-kubernetes-operator/pull/606#issuecomment-4157679564
Thank you, @viirya ! 😄
--
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
Re: [PR] [SPARK-56292] Make `(App|Cluster)ReconcileStep` abstract classes `sealed` [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #606: [SPARK-56292] Make `(App|Cluster)ReconcileStep` abstract classes `sealed`
URL: https://github.com/apache/spark-kubernetes-operator/pull/606
--
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
Re: [PR] [SPARK-56292] Make `(App|Cluster)ReconcileStep` abstract classes `sealed` [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #606:
URL: https://github.com/apache/spark-kubernetes-operator/pull/606#issuecomment-4157740509
Merged to main
--
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