jiangjiangtian opened a new issue, #11125:
URL: https://github.com/apache/incubator-gluten/issues/11125

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   The exception stack:
   ```
   org.apache.spark.SparkNoSuchElementException: [SQL_CONF_NOT_FOUND] The SQL 
config "spark.memory.offHeap.enabled" cannot be found. Please verify that the 
config exists.
        at 
org.apache.spark.sql.errors.QueryExecutionErrors$.sqlConfigNotFoundError(QueryExecutionErrors.scala:1984)
 ~[spark-catalyst_2.12-3.5.1-mt-1.0.0-SNAPSHOT.jar:3.5.1-mt-1.0.0-SNAPSHOT]
        at 
org.apache.spark.sql.internal.SQLConf.$anonfun$getConfString$3(SQLConf.scala:5737)
 ~[spark-catalyst_2.12-3.5.1-mt-1.0.0-SNAPSHOT.jar:3.5.1-mt-1.0.0-SNAPSHOT]
        at scala.Option.getOrElse(Option.scala:189) 
~[scala-library-2.12.18.jar:?]
        at 
org.apache.spark.sql.internal.SQLConf.getConfString(SQLConf.scala:5737) 
~[spark-catalyst_2.12-3.5.1-mt-1.0.0-SNAPSHOT.jar:3.5.1-mt-1.0.0-SNAPSHOT]
        at 
org.apache.gluten.memory.memtarget.ThrowOnOomMemoryTarget.borrow(ThrowOnOomMemoryTarget.java:101)
 ~[gluten-package-1.3.0.jar:?]
        at 
org.apache.gluten.memory.listener.ManagedReservationListener.reserve(ManagedReservationListener.java:49)
 [gluten-package-1.3.0.jar:?]
   ```
   
   The reason is that in preload's thread, the `TaskContext` isn't set. So this 
thread can't get the configuration of the task.
   Should we only allow task thread to call `borrow` 
[here](https://github.com/apache/incubator-gluten/blob/main/gluten-arrow/src/main/java/org/apache/gluten/memory/listener/ManagedReservationListener.java#L49).
 The issue is also described at 
[here](https://github.com/apache/incubator-gluten/issues/9846#issuecomment-2936480906)
   
   ### Gluten version
   
   Gluten-1.3
   
   ### Spark version
   
   Spark-3.5.x
   
   ### 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