Skip to content

Conversation

@littlexyw
Copy link

What changes were proposed in this pull request?

Validate the size of each ConfigMap during its creation and fail app on its size over limit.

Why are the changes needed?

Currently, when the combined size of configuration files exceeds the Kubernetes ConfigMap size limit, Spark silently skips loading some files. This behavior is problematic because it can lead to unexpected missing configurations, potentially causing application failures or incorrect runtime behavior.

Furthermore, the current validation logic is incomplete and inconsistent:

  1. Only the size of driver conf map will be validated against the Kubernetes limit.
  2. The size of the spark.properties file is NOT included in the size calculation.

Does this PR introduce any user-facing change?

Yes. Application will fail when ConfigMap size is over limit instead of skipping conf files.

How was this patch tested?

UT.

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

No.

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.

1 participant