marin-ma commented on issue #11397:
URL: 
https://github.com/apache/incubator-gluten/issues/11397#issuecomment-3774829118

   log from executor
   
   ```
   Caused by: org.apache.gluten.exception.GlutenException: Exception: 
VeloxRuntimeError
   Error Source: RUNTIME
   Error Code: INVALID_STATE
   Reason: Operator::addInput failed for [operator: TableWrite, plan node ID: 
1]: Error during calling Java code from native code: 
org.apache.gluten.memory.memtarget.ThrowOnOomMemoryTarget$OutOfMemoryException: 
Not enough spark off-heap execution memory. Acquired: 16.0 MiB, granted: 11.7 
MiB. Try tweaking config option spark.memory.offHeap.size to get larger space 
to run this application (if spark.gluten.memory.dynamic.offHeap.sizing.enabled 
is not enabled). 
   Current config settings: 
        spark.memory.offHeap.enabled=True
        spark.gluten.memory.dynamic.offHeap.sizing.enabled=N/A
        spark.gluten.memory.offHeap.size.in.bytes=76.0 GiB
        spark.gluten.memory.task.offHeap.size.in.bytes=5.1 GiB
        spark.gluten.memory.conservative.task.offHeap.size.in.bytes=2.5 GiB
   Memory consumer stats: 
        Task.139:                                                               
   Current used bytes:    5.1 GiB, peak bytes:       N/A
        \- Gluten.Tree.71:                                                      
   Current used bytes:    5.1 GiB, peak bytes:   5.1 GiB
           \- Capacity[8.0 EiB].71:                                             
   Current used bytes:    5.1 GiB, peak bytes:   5.1 GiB
              +- NativePlanEvaluator-59.0:                                      
   Current used bytes:    5.0 GiB, peak bytes:   5.1 GiB
              |  \- single:                                                     
   Current used bytes:    5.0 GiB, peak bytes:   5.0 GiB
              |     +- root:                                                    
   Current used bytes:    5.0 GiB, peak bytes:   5.0 GiB
              |     |  +- task.Gluten_Stage_2_TID_139_VTID_46:                  
   Current used bytes:    5.0 GiB, peak bytes:   5.0 GiB
              |     |  |  +- node.1:                                            
   Current used bytes:    5.0 GiB, peak bytes:   5.0 GiB
              |     |  |  |  +- op.1.0.0.TableWrite.test-hive:                  
   Current used bytes:    5.0 GiB, peak bytes:   5.0 GiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[0]:       
   Current used bytes:    4.7 GiB, peak bytes:   4.8 GiB
              |     |  |  |  |  |  +- writer_node_7031847589486650209:          
   Current used bytes:  292.3 MiB, peak bytes: 304.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  292.3 MiB, peak bytes: 301.7 MiB
              |     |  |  |  |  |  +- writer_node_3054265772484308294:          
   Current used bytes:  277.6 MiB, peak bytes: 280.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  277.6 MiB, peak bytes: 277.6 MiB
              |     |  |  |  |  |  +- writer_node_14272561293401280157:         
   Current used bytes:  277.6 MiB, peak bytes: 280.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  277.6 MiB, peak bytes: 277.6 MiB
              |     |  |  |  |  |  +- writer_node_2112488546795167233:          
   Current used bytes:  277.2 MiB, peak bytes: 280.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  277.2 MiB, peak bytes: 277.2 MiB
              |     |  |  |  |  |  +- writer_node_16931393319497683797:         
   Current used bytes:  276.7 MiB, peak bytes: 280.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  276.7 MiB, peak bytes: 276.7 MiB
              |     |  |  |  |  |  +- writer_node_18137192975167492920:         
   Current used bytes:  276.6 MiB, peak bytes: 280.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  276.6 MiB, peak bytes: 276.6 MiB
              |     |  |  |  |  |  +- writer_node_12172041519402542988:         
   Current used bytes:  276.5 MiB, peak bytes: 280.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  276.5 MiB, peak bytes: 276.5 MiB
              |     |  |  |  |  |  +- writer_node_10461124164239073942:         
   Current used bytes:  276.4 MiB, peak bytes: 280.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  276.4 MiB, peak bytes: 276.4 MiB
              |     |  |  |  |  |  +- writer_node_8811262561155902322:          
   Current used bytes:  276.4 MiB, peak bytes: 280.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  276.4 MiB, peak bytes: 276.4 MiB
              |     |  |  |  |  |  +- writer_node_642915425794718332:           
   Current used bytes:  276.4 MiB, peak bytes: 280.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  276.4 MiB, peak bytes: 276.4 MiB
              |     |  |  |  |  |  +- writer_node_11288951868842387768:         
   Current used bytes:  275.6 MiB, peak bytes: 280.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  275.6 MiB, peak bytes: 275.6 MiB
              |     |  |  |  |  |  +- writer_node_2941432262032465758:          
   Current used bytes:  142.1 MiB, peak bytes: 336.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  142.1 MiB, peak bytes: 335.2 MiB
              |     |  |  |  |  |  +- writer_node_16928153808253454350:         
   Current used bytes:  142.1 MiB, peak bytes: 336.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  142.1 MiB, peak bytes: 334.8 MiB
              |     |  |  |  |  |  +- writer_node_10146196948198062490:         
   Current used bytes:  141.4 MiB, peak bytes: 336.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  141.4 MiB, peak bytes: 335.1 MiB
              |     |  |  |  |  |  +- writer_node_16258151360667018862:         
   Current used bytes:  140.8 MiB, peak bytes: 336.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  140.8 MiB, peak bytes: 335.3 MiB
              |     |  |  |  |  |  +- writer_node_6645306880520533945:          
   Current used bytes:  139.3 MiB, peak bytes: 336.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  139.3 MiB, peak bytes: 335.1 MiB
              |     |  |  |  |  |  +- writer_node_2743565578621911688:          
   Current used bytes:  134.6 MiB, peak bytes: 136.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  134.6 MiB, peak bytes: 134.6 MiB
              |     |  |  |  |  |  +- writer_node_16731297274371811126:         
   Current used bytes:  134.4 MiB, peak bytes: 136.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  134.4 MiB, peak bytes: 134.4 MiB
              |     |  |  |  |  |  +- writer_node_2959020724824982089:          
   Current used bytes:  134.2 MiB, peak bytes: 136.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  134.2 MiB, peak bytes: 134.2 MiB
              |     |  |  |  |  |  +- writer_node_10241975331981463418:         
   Current used bytes:  133.7 MiB, peak bytes: 136.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  133.7 MiB, peak bytes: 133.7 MiB
              |     |  |  |  |  |  +- writer_node_13386034080034987954:         
   Current used bytes:  132.9 MiB, peak bytes: 136.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  132.9 MiB, peak bytes: 132.9 MiB
              |     |  |  |  |  |  +- writer_node_7297182879588893248:          
   Current used bytes:  132.9 MiB, peak bytes: 136.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  132.9 MiB, peak bytes: 132.9 MiB
              |     |  |  |  |  |  +- writer_node_572165128279786516:           
   Current used bytes:  132.8 MiB, peak bytes: 136.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  132.8 MiB, peak bytes: 132.8 MiB
              |     |  |  |  |  |  +- writer_node_16409805935712650697:         
   Current used bytes:  132.7 MiB, peak bytes: 136.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
   Current used bytes:  132.7 MiB, peak bytes: 132.7 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[0].sink:  Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[15]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[15].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[18]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[18].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[6]:       
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[6].sink:  Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[4]:       
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[4].sink:  Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[1]:       
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[1].sink:  Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[12]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[12].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[10]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[10].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[13]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[13].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[20]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[20].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[5]:       
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[5].sink:  Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[14]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[14].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[11]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[11].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[21]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[21].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[23]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[23].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[9]:       
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[9].sink:  Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[16]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[16].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[3]:       
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[3].sink:  Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[8]:       
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[8].sink:  Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[17]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[17].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[7]:       
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[7].sink:  Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[19]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[19].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  +- op.1.0.0.TableWrite.test-hive.part[2]:       
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |  |  \- 
op.1.0.0.TableWrite.test-hive.part[2].sink:  Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  |  \- op.1.0.0.TableWrite.test-hive.part[22]:      
   Current used bytes:   10.0 MiB, peak bytes:  10.0 MiB
              |     |  |  |  |     \- 
op.1.0.0.TableWrite.test-hive.part[22].sink: Current used bytes:   10.0 MiB, 
peak bytes:  10.0 MiB
              |     |  |  |  \- op.1.0.0.TableWrite:                            
   Current used bytes:  625.5 KiB, peak bytes: 625.5 KiB
              |     |  |  \- node.0:                                            
   Current used bytes:      0.0 B, peak bytes:     0.0 B
              |     |  |     \- op.0.0.0.ValueStream:                           
   Current used bytes:      0.0 B, peak bytes:     0.0 B
              |     |  \- default_leaf:                                         
   Current used bytes:      0.0 B, peak bytes:     0.0 B
              |     \- gluten::MemoryAllocator:                                 
   Current used bytes:      0.0 B, peak bytes:     0.0 B
              |        \- default:                                              
   Current used bytes:      0.0 B, peak bytes:     0.0 B
              +- ShuffleReader.10:                                              
   Current used bytes:    8.0 MiB, peak bytes:   8.0 MiB
              |  \- single:                                                     
   Current used bytes:    8.0 MiB, peak bytes:   8.0 MiB
              |     +- gluten::MemoryAllocator:                                 
   Current used bytes: 1602.9 KiB, peak bytes:   2.0 MiB
              |     |  \- default:                                              
   Current used bytes: 1602.9 KiB, peak bytes:   2.0 MiB
              |     \- root:                                                    
   Current used bytes:      0.0 B, peak bytes:     0.0 B
              |        \- default_leaf:                                         
   Current used bytes:      0.0 B, peak bytes:     0.0 B
              +- ArrowContextInstance.13:                                       
   Current used bytes:    8.0 MiB, peak bytes:   8.0 MiB
              +- IteratorMetrics.48.OverAcquire.0:                              
   Current used bytes:      0.0 B, peak bytes:     0.0 B
              +- ShuffleReader.10.OverAcquire.0:                                
   Current used bytes:      0.0 B, peak bytes:     0.0 B
              +- NativePlanEvaluator-59.0.OverAcquire.0:                        
   Current used bytes:      0.0 B, peak bytes:     0.0 B
              \- IteratorMetrics.48:                                            
   Current used bytes:      0.0 B, peak bytes:     0.0 B
                 \- single:                                                     
   Current used bytes:      0.0 B, peak bytes:     0.0 B
                    +- gluten::MemoryAllocator:                                 
   Current used bytes:      0.0 B, peak bytes:     0.0 B
                    |  \- default:                                              
   Current used bytes:      0.0 B, peak bytes:     0.0 B
                    \- root:                                                    
   Current used bytes:      0.0 B, peak bytes:     0.0 B
                       \- default_leaf:                                         
   Current used bytes:      0.0 B, peak bytes:     0.0 B
   
        at 
org.apache.gluten.memory.memtarget.ThrowOnOomMemoryTarget.borrow(ThrowOnOomMemoryTarget.java:154)
        at 
org.apache.gluten.memory.listener.ManagedReservationListener.reserve(ManagedReservationListener.java:49)
        at 
org.apache.gluten.vectorized.ColumnarBatchOutIterator.nativeHasNext(Native 
Method)
        at 
org.apache.gluten.vectorized.ColumnarBatchOutIterator.hasNext0(ColumnarBatchOutIterator.java:58)
        at 
org.apache.gluten.iterator.ClosableIterator.hasNext(ClosableIterator.java:36)
        at 
scala.collection.convert.Wrappers$JIteratorWrapper.hasNext(Wrappers.scala:45)
        at 
org.apache.gluten.iterator.IteratorsV1$InvocationFlowProtection.hasNext(IteratorsV1.scala:154)
        at 
org.apache.gluten.iterator.IteratorsV1$IteratorCompleter.hasNext(IteratorsV1.scala:66)
        at 
org.apache.gluten.iterator.IteratorsV1$PayloadCloser.hasNext(IteratorsV1.scala:38)
        at 
org.apache.gluten.iterator.IteratorsV1$LifeTimeAccumulator.hasNext(IteratorsV1.scala:95)
        at 
org.apache.spark.sql.execution.VeloxColumnarWriteFilesRDD.$anonfun$compute$2(VeloxColumnarWriteFilesExec.scala:213)
        at 
scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
        at 
org.apache.spark.util.Utils$.tryWithSafeFinallyAndFailureCallbacks(Utils.scala:1397)
        at 
org.apache.spark.sql.execution.VeloxColumnarWriteFilesRDD.compute(VeloxColumnarWriteFilesExec.scala:208)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:367)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:331)
        at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:93)
        at 
org.apache.spark.TaskContext.runTaskWithListeners(TaskContext.scala:166)
        at org.apache.spark.scheduler.Task.run(Task.scala:141)
        at 
org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$4(Executor.scala:620)
        at 
org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally(SparkErrorUtils.scala:64)
        at 
org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally$(SparkErrorUtils.scala:61)
        at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:94)
        at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:623)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
   ```


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