xingyif opened a new pull request #26430: [SPARK-28859][Core] Remove value check of MEMORY_OFFHEAP_SIZE URL: https://github.com/apache/spark/pull/26430 ### What changes were proposed in this pull request? Remove value check of `MEMORY_OFFHEAP_SIZE` in declaration section. https://issues.apache.org/jira/browse/SPARK-28859 Required user to provide a value larger than 0 when specifying `MEMORY_OFFHEAP_SIZE`. ### Why are the changes needed? In MemoryManager.scala Line 229, we validate that `MEMORY_OFFHEAP_SIZE` is > 0 if `MEMORY_OFFHEAP_ENABLED` is true. For consistency, we should require the user to specify a value > 0. ### Does this PR introduce any user-facing change? Yes, the user will need to provide values > 0 for `MEMORY_OFFHEAP_SIZE` in config. ### How was this patch tested? Added unit test that checks the value is validated.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
