wecharyu opened a new issue, #13833:
URL: https://github.com/apache/gluten/issues/13833

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   #10172 added `updateResourceSetting` to reflect an AQE stage's 
`ResourceProfile` in the driver's SQLConf. This still leaves the stale off-heap 
budget reported in #10099. Spark can copy SQLConf values into job local 
properties before AQE creates and submits the adjusted stage. The driver write 
changes the session value, while tasks can still receive the earlier value. 
Spark applies the executor's profile separately, so `SparkEnv.conf` already has 
the adjusted off-heap size. The driver helper also leaves the conservative 
per-task budget used by memory isolation at its initial value.
   
   In additionally, `updateResourceSetting` does not work for non-AQE case 
(Plan to support it in `GlutenAutoAdjustStageResourceProfile`) where a plan 
could generate multiple stages, the single `updateResourceSetting` could not 
work for stages with different resource profile.
   
   ### Proposed change
   Keep profile assignment on the RDDs. On the executor, derive both task 
budgets from the effective Spark executor configuration and 
`TaskContext.cpus()`. Use them when building the JNI config and the isolated 
memory target. Remove the stage rule's writes to session SQLConf.
   
   ### Gluten version
   
   _No response_
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   ```bash
   
   ```


-- 
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]

Reply via email to