Skip to content

Conversation

@VindhyaG
Copy link
Contributor

@VindhyaG VindhyaG commented Dec 8, 2025

What changes were proposed in this pull request?

Currently, even if spark.memory.offHeap.enabled=false
spark.memory.offHeap.size is calculated for SPARK UI and wherever the config is used. This PR changes the logic to take the value set in spark.memory.offHeap.size only when spark.memory.offHeap.enabled

Why are the changes needed?

Change the logic to get the config of spark.memory.offHeap.size by checking spark.memory.offHeap.enabled first

Does this PR introduce any user-facing change?

Yes. Spark UI will show the total of Onheap and Off heap memory only if spark.memory.offHeap.enabled = true.

How was this patch tested?

Existing UTs

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

No

@github-actions github-actions bot added the CORE label Dec 8, 2025
@VindhyaG VindhyaG changed the title [SPARK-54449][SPARK-UI] : Storage Memory off heap size should be considered only when off heap is enabled [SPARK-54449][CORE] : Storage Memory off heap size should be considered only when off heap is enabled Dec 8, 2025
@VindhyaG VindhyaG changed the title [SPARK-54449][CORE] : Storage Memory off heap size should be considered only when off heap is enabled [SPARK-54449][CORE] Storage Memory off heap size should be considered only when off heap is enabled Dec 8, 2025
@VindhyaG VindhyaG force-pushed the SPARK-54449 branch 2 times, most recently from 095d819 to db76a5d Compare December 9, 2025 13:05
@VindhyaG VindhyaG force-pushed the SPARK-54449 branch 2 times, most recently from dde0469 to 7f06280 Compare December 12, 2025 04:50
@VindhyaG
Copy link
Contributor Author

VindhyaG commented Dec 16, 2025

@holdenk can you please help review this or help tag the relevant reviewers please ? Thanks!

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