Skip to content

Conversation

@yaooqinn
Copy link
Member

backport #32621 to 3.0

What changes were proposed in this pull request?

most spark conf keys are case sensitive, including spark.blockManager.port, we can not get the correct port number with spark.blockmanager.port.

This PR changes the wrong key to spark.blockManager.port in BasicExecutorFeatureStep.

This PR also ensures a fast fail when the port value is invalid for executor containers. When 0 is specified(it is valid as random port, but invalid as a k8s request), it should not be put in the containerPort field of executor pod desc. We do not expect executor pods to continuously fail to create because of invalid requests.

Why are the changes needed?

bugfix

Does this PR introduce any user-facing change?

no

How was this patch tested?

new tests

…rk.blockmanager.port in BasicExecutorFeatureStep
@SparkQA
Copy link

SparkQA commented May 21, 2021

Test build #138814 has finished for PR 32624 at commit 30f5285.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented May 21, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43336/

@SparkQA
Copy link

SparkQA commented May 21, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43336/

@yaooqinn
Copy link
Member Author

cc @dongjoon-hyun

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @yaooqinn .
Merged to branch-3.0.

dongjoon-hyun pushed a commit that referenced this pull request May 22, 2021
…spark.blockmanager.port` in `BasicExecutorFeatureStep`

backport #32621 to 3.0

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

most spark conf keys are case sensitive, including `spark.blockManager.port`, we can not get the correct port number with `spark.blockmanager.port`.

This PR changes the wrong key to `spark.blockManager.port` in `BasicExecutorFeatureStep`.

This PR also ensures a fast fail when the port value is invalid for executor containers. When 0 is specified(it is valid as random port, but invalid as a k8s request), it should not be put in the `containerPort` field of executor pod desc. We do not expect executor pods to continuously fail to create because of invalid requests.

### Why are the changes needed?

bugfix

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

no

### How was this patch tested?

new tests

Closes #32624 from yaooqinn/backport.

Authored-by: Kent Yao <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@yaooqinn yaooqinn deleted the backport branch October 25, 2024 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants