wecharyu opened a new pull request, #13834: URL: https://github.com/apache/gluten/pull/13834
## What changes are proposed in this pull request? Fixes #13833. When an AQE stage gets a custom `ResourceProfile`, Spark can launch its executor with the adjusted off-heap size while the task still receives the initial Gluten budgets through `SQLConf`. The driver's `updateResourceSetting()` can run after Spark has copied the session configuration into job local properties. As a result, Velox can receive a stale per-task budget, and Gluten memory isolation can still enforce the initial limit. This PR computes both budgets on the executor using the effective `SparkEnv.conf` and `TaskContext.cpus()`. The native session configuration uses the resulting per-task budget, and the isolated memory target uses the conservative budget. The AQE rule continues to attach the profile to the RDD and no longer writes resource settings into the session `SQLConf`. ## How was this patch tested? Add new UT. ## Was this patch authored or co-authored using generative AI tooling? Generated-by: OpenAI Codex (GPT-6) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
