Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Oct 14, 2025

What changes were proposed in this pull request?

This PR aims to protect ExecutorPodsAllocator.numOutstandingPods as protected val.

Why are the changes needed?

We had better protect this properly instead of commenting it.

// visible for tests
val numOutstandingPods = new AtomicInteger()

Does this PR introduce any user-facing change?

No. This is not supposed to be used internally.

How was this patch tested?

Pass the CIs.

Was this patch authored or co-authored using generative AI tooling?

No.

@dongjoon-hyun
Copy link
Member Author

cc @peter-toth

@dongjoon-hyun
Copy link
Member Author

Thank you so much, @peter-toth .

@dongjoon-hyun
Copy link
Member Author

Merged to master for Apache Spark 4.1.0-preview3.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-53906 branch October 14, 2025 20:06
dongjoon-hyun added a commit that referenced this pull request Oct 23, 2025
…ndingPods`

### What changes were proposed in this pull request?

This is a follow-up of the following to apply the latest `master` branch change.
- #51913

### Why are the changes needed?

The master branch compilation is broken currently.
- https://github.com/apache/spark/actions/runs/18760939731

Recently, we changed `numOutstandingPods`'s visibility, but I missed that the old open PRs didn't have this change.
- #52614

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #52714 from dongjoon-hyun/SPARK-53324.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
huangxiaopingRD pushed a commit to huangxiaopingRD/spark that referenced this pull request Nov 25, 2025
… as `protected val`

### What changes were proposed in this pull request?

This PR aims to protect `ExecutorPodsAllocator.numOutstandingPods` as `protected val`.

### Why are the changes needed?

We had better protect this properly instead of commenting it.

https://github.com/apache/spark/blob/ff0f1ab95238b27af93c755b600b82c0769fb8d0/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorPodsAllocator.scala#L108-L109

### Does this PR introduce _any_ user-facing change?

No. This is not supposed to be used internally.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#52614 from dongjoon-hyun/SPARK-53906.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
huangxiaopingRD pushed a commit to huangxiaopingRD/spark that referenced this pull request Nov 25, 2025
…ndingPods`

### What changes were proposed in this pull request?

This is a follow-up of the following to apply the latest `master` branch change.
- apache#51913

### Why are the changes needed?

The master branch compilation is broken currently.
- https://github.com/apache/spark/actions/runs/18760939731

Recently, we changed `numOutstandingPods`'s visibility, but I missed that the old open PRs didn't have this change.
- apache#52614

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#52714 from dongjoon-hyun/SPARK-53324.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants