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

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   It seems that writing too many hive partitions causes `Not enough spark 
off-heap execution memory`
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   ```bash
   24/10/23 10:05:16 ERROR Utils: Aborting task
   org.apache.gluten.exception.GlutenException: 
org.apache.gluten.exception.GlutenException: Exception: VeloxRuntimeError
   Error Source: RUNTIME
   Error Code: INVALID_STATE
   Reason: Operator::addInput failed for [operator: TableWrite, plan node ID: 
2]: Error during calling Java code from native code: 
org.apache.gluten.memory.memtarget.ThrowOnOomMemoryTarget$OutOfMemoryException: 
Not enough spark off-heap execution memory. Acquired: 8.0 MiB, granted: 7.0 
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.gluten.memory.offHeap.size.in.bytes=2.0 GiB
        spark.gluten.memory.task.offHeap.size.in.bytes=2.0 GiB
        spark.gluten.memory.conservative.task.offHeap.size.in.bytes=1024.0 MiB
        spark.memory.offHeap.enabled=true
        spark.gluten.memory.dynamic.offHeap.sizing.enabled=false
   Memory consumer stats: 
        Task.6165:                                                              
    Current used bytes: 2041.0 MiB, peak bytes:        N/A
        \- Gluten.Tree.7:                                                       
    Current used bytes: 2041.0 MiB, peak bytes:    2.0 GiB
           \- root.7:                                                           
    Current used bytes: 2041.0 MiB, peak bytes:    2.0 GiB
              +- WholeStageIterator.7:                                          
    Current used bytes: 2016.0 MiB, peak bytes: 2023.0 MiB
              |  \- single:                                                     
    Current used bytes: 2016.0 MiB, peak bytes: 2016.0 MiB
              |     +- root:                                                    
    Current used bytes: 1867.6 MiB, peak bytes: 2016.0 MiB
              |     |  +- task.Gluten_Stage_135_TID_6165_VTID_7:                
    Current used bytes: 1867.6 MiB, peak bytes: 2016.0 MiB
              |     |  |  +- node.2:                                            
    Current used bytes: 1867.6 MiB, peak bytes: 2016.0 MiB
              |     |  |  |  +- op.2.0.0.TableWrite.test-hive:                  
    Current used bytes: 1862.5 MiB, peak bytes: 2010.0 MiB
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[34]:      
    Current used bytes:   27.1 MiB, peak bytes:   28.0 MiB
              |     |  |  |  |  |  +- writer_node_16495590765074372487:         
    Current used bytes:   27.1 MiB, peak bytes:   28.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   27.1 MiB, peak bytes:   27.2 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[34].sink:  Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[55]:      
    Current used bytes:   24.2 MiB, peak bytes:   28.0 MiB
              |     |  |  |  |  |  +- writer_node_3034760001384861262:          
    Current used bytes:   24.2 MiB, peak bytes:   28.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   24.2 MiB, peak bytes:   24.3 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[55].sink:  Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[126]:     
    Current used bytes:   22.9 MiB, peak bytes:   24.0 MiB
              |     |  |  |  |  |  +- writer_node_10989164195300702660:         
    Current used bytes:   22.9 MiB, peak bytes:   24.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   22.9 MiB, peak bytes:   22.9 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[126].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[190]:     
    Current used bytes:   22.9 MiB, peak bytes:   24.0 MiB
              |     |  |  |  |  |  +- writer_node_2462400773501287974:          
    Current used bytes:   22.9 MiB, peak bytes:   24.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   22.9 MiB, peak bytes:   22.9 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[190].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[15]:      
    Current used bytes:   22.6 MiB, peak bytes:   24.0 MiB
              |     |  |  |  |  |  +- writer_node_10962424750642795316:         
    Current used bytes:   22.6 MiB, peak bytes:   24.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   22.6 MiB, peak bytes:   22.7 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[15].sink:  Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[110]:     
    Current used bytes:   22.5 MiB, peak bytes:   24.0 MiB
              |     |  |  |  |  |  +- writer_node_17871452156508439970:         
    Current used bytes:   22.5 MiB, peak bytes:   24.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   22.5 MiB, peak bytes:   22.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[110].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[63]:      
    Current used bytes:   21.9 MiB, peak bytes:   24.0 MiB
              |     |  |  |  |  |  +- writer_node_11605731064327424053:         
    Current used bytes:   21.9 MiB, peak bytes:   24.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   21.9 MiB, peak bytes:   22.0 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[63].sink:  Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[174]:     
    Current used bytes:   20.2 MiB, peak bytes:   24.0 MiB
              |     |  |  |  |  |  +- writer_node_1465030665100865752:          
    Current used bytes:   20.2 MiB, peak bytes:   24.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   20.2 MiB, peak bytes:   20.2 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[174].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[172]:     
    Current used bytes:   18.9 MiB, peak bytes:   20.0 MiB
              |     |  |  |  |  |  +- writer_node_7515311972563278385:          
    Current used bytes:   18.9 MiB, peak bytes:   20.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   18.9 MiB, peak bytes:   18.9 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[172].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[113]:     
    Current used bytes:   18.5 MiB, peak bytes:   20.0 MiB
              |     |  |  |  |  |  +- writer_node_13120283611592924997:         
    Current used bytes:   18.5 MiB, peak bytes:   20.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   18.5 MiB, peak bytes:   18.6 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[113].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[42]:      
    Current used bytes:   18.5 MiB, peak bytes:   20.0 MiB
              |     |  |  |  |  |  +- writer_node_9372597259039499552:          
    Current used bytes:   18.5 MiB, peak bytes:   20.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   18.5 MiB, peak bytes:   18.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[42].sink:  Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[131]:     
    Current used bytes:   18.2 MiB, peak bytes:   20.0 MiB
              |     |  |  |  |  |  +- writer_node_4488967983352450288:          
    Current used bytes:   18.2 MiB, peak bytes:   20.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   18.2 MiB, peak bytes:   18.2 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[131].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[162]:     
    Current used bytes:   15.4 MiB, peak bytes:   16.0 MiB
              |     |  |  |  |  |  +- writer_node_17438843217648573119:         
    Current used bytes:   15.4 MiB, peak bytes:   16.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   15.4 MiB, peak bytes:   15.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[162].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[65]:      
    Current used bytes:   15.1 MiB, peak bytes:   16.0 MiB
              |     |  |  |  |  |  +- writer_node_15452059679315520385:         
    Current used bytes:   15.1 MiB, peak bytes:   16.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   15.1 MiB, peak bytes:   15.1 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[65].sink:  Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[210]:     
    Current used bytes:   15.0 MiB, peak bytes:   16.0 MiB
              |     |  |  |  |  |  +- writer_node_9266752813434529133:          
    Current used bytes:   15.0 MiB, peak bytes:   16.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   15.0 MiB, peak bytes:   15.1 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[210].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[67]:      
    Current used bytes:   14.4 MiB, peak bytes:   15.0 MiB
              |     |  |  |  |  |  +- writer_node_5157661972043366947:          
    Current used bytes:   14.4 MiB, peak bytes:   15.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   14.4 MiB, peak bytes:   14.4 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[67].sink:  Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[72]:      
    Current used bytes:   14.0 MiB, peak bytes:   15.0 MiB
              |     |  |  |  |  |  +- writer_node_14514910955711142343:         
    Current used bytes:   14.0 MiB, peak bytes:   15.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   14.0 MiB, peak bytes:   14.0 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[72].sink:  Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[195]:     
    Current used bytes:   13.4 MiB, peak bytes:   14.0 MiB
              |     |  |  |  |  |  +- writer_node_1485441638280894625:          
    Current used bytes:   13.4 MiB, peak bytes:   14.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   13.4 MiB, peak bytes:   13.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[195].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[123]:     
    Current used bytes:   13.4 MiB, peak bytes:   14.0 MiB
              |     |  |  |  |  |  +- writer_node_6634720992138079112:          
    Current used bytes:   13.4 MiB, peak bytes:   14.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   13.4 MiB, peak bytes:   13.4 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[123].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[185]:     
    Current used bytes:   13.3 MiB, peak bytes:   14.0 MiB
              |     |  |  |  |  |  +- writer_node_13535610051813534755:         
    Current used bytes:   13.3 MiB, peak bytes:   14.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   13.3 MiB, peak bytes:   13.4 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[185].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[200]:     
    Current used bytes:   13.3 MiB, peak bytes:   14.0 MiB
              |     |  |  |  |  |  +- writer_node_3875021975498280443:          
    Current used bytes:   13.3 MiB, peak bytes:   14.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   13.3 MiB, peak bytes:   13.3 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[200].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[59]:      
    Current used bytes:   12.9 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_16272544847912354319:         
    Current used bytes:   12.9 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.9 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[59].sink:  Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[166]:     
    Current used bytes:   12.6 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_15485796053569832754:         
    Current used bytes:   12.6 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.6 MiB, peak bytes:   12.7 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[166].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[157]:     
    Current used bytes:   12.6 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_8295349848501177671:          
    Current used bytes:   12.6 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.6 MiB, peak bytes:   12.7 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[157].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[64]:      
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_3964347345554411107:          
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.5 MiB, peak bytes:   12.6 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[64].sink:  Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[88]:      
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_17501627176929250602:         
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.5 MiB, peak bytes:   12.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[88].sink:  Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[165]:     
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_5103532593787709678:          
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.5 MiB, peak bytes:   12.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[165].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[111]:     
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_913615336661173562:           
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.5 MiB, peak bytes:   12.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[111].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[116]:     
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_16007420479186856992:         
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.5 MiB, peak bytes:   12.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[116].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[209]:     
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_13664721293374663391:         
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.5 MiB, peak bytes:   12.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[209].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[178]:     
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_7213323637378777817:          
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.5 MiB, peak bytes:   12.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[178].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[121]:     
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_5750783937089881792:          
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.5 MiB, peak bytes:   12.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[121].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[182]:     
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_12913595327245071541:         
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.5 MiB, peak bytes:   12.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[182].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[120]:     
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_8901286779273775421:          
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.5 MiB, peak bytes:   12.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[120].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
              |     |  |  |  |  +- op.2.0.0.TableWrite.test-hive.part[155]:     
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  +- writer_node_9259036891116703451:          
    Current used bytes:   12.5 MiB, peak bytes:   13.0 MiB
              |     |  |  |  |  |  |  \- .general:                              
    Current used bytes:   12.5 MiB, peak bytes:   12.5 MiB
              |     |  |  |  |  |  \- 
op.2.0.0.TableWrite.test-hive.part[155].sink: Current used bytes:      0.0 B, 
peak bytes:      0.0 B
   ......
              |     |  |  |  \- op.2.0.0.TableWrite:                            
    Current used bytes:    5.1 MiB, peak bytes:    5.1 MiB
              |     |  |  +- 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
              |     |  |  \- node.1:                                            
    Current used bytes:      0.0 B, peak bytes:      0.0 B
              |     |  |     \- op.1.0.0.FilterProject:                         
    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
              +- ShuffleReader.7:                                               
    Current used bytes:   17.0 MiB, peak bytes:   24.0 MiB
              |  \- single:                                                     
    Current used bytes:   17.0 MiB, peak bytes:   24.0 MiB
              |     +- gluten::MemoryAllocator:                                 
    Current used bytes:   10.0 MiB, peak bytes:   10.4 MiB
              |     \- root:                                                    
    Current used bytes:  384.0 KiB, peak bytes: 1024.0 KiB
              |        \- default_leaf:                                         
    Current used bytes:  384.0 KiB, peak bytes:  384.0 KiB
              +- ArrowContextInstance.14:                                       
    Current used bytes:    8.0 MiB, peak bytes:    8.0 MiB
              +- IndicatorVectorBase#init.7:                                    
    Current used bytes:      0.0 B, peak bytes:    8.0 MiB
              |  \- single:                                                     
    Current used bytes:      0.0 B, peak bytes:    8.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
              |     \- gluten::MemoryAllocator:                                 
    Current used bytes:      0.0 B, peak bytes:      0.0 B
              +- OverAcquire.DummyTarget.37:                                    
    Current used bytes:      0.0 B, peak bytes:    2.4 MiB
              +- OverAcquire.DummyTarget.36:                                    
    Current used bytes:      0.0 B, peak bytes:    7.2 MiB
              +- OverAcquire.DummyTarget.35:                                    
    Current used bytes:      0.0 B, peak bytes:  460.8 MiB
              \- ArrowContextInstance.15:                                       
    Current used bytes:      0.0 B, peak bytes:      0.0 B
   
        at 
org.apache.gluten.memory.memtarget.ThrowOnOomMemoryTarget.borrow(ThrowOnOomMemoryTarget.java:105)
        at 
org.apache.gluten.memory.listener.ManagedReservationListener.reserve(ManagedReservationListener.java:43)
        at 
org.apache.gluten.vectorized.ColumnarBatchOutIterator.nativeHasNext(Native 
Method)
        at 
org.apache.gluten.vectorized.ColumnarBatchOutIterator.hasNextInternal(ColumnarBatchOutIterator.java:61)
        at 
org.apache.gluten.vectorized.GeneralOutIterator.hasNext(GeneralOutIterator.java:37)
        at 
scala.collection.convert.Wrappers$JIteratorWrapper.hasNext(Wrappers.scala:45)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$InvocationFlowProtection.hasNext(IteratorsV1.scala:159)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$IteratorCompleter.hasNext(IteratorsV1.scala:71)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$PayloadCloser.hasNext(IteratorsV1.scala:37)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$LifeTimeAccumulator.hasNext(IteratorsV1.scala:100)
        at 
org.apache.spark.sql.execution.VeloxColumnarWriteFilesRDD.$anonfun$compute$2(VeloxColumnarWriteFilesExec.scala:208)
        at 
scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
        at 
org.apache.spark.util.Utils$.tryWithSafeFinallyAndFailureCallbacks(Utils.scala:1428)
        at 
org.apache.spark.sql.execution.VeloxColumnarWriteFilesRDD.compute(VeloxColumnarWriteFilesExec.scala:203)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:364)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:328)
        at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:93)
        at 
org.apache.spark.TaskContext.runTaskWithListeners(TaskContext.scala:161)
        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.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   
   Retriable: False
   Function: runInternal
   File: 
/data/workspace/gluten-deploy-dist/ep/build-velox/build/velox_ep/velox/exec/Driver.cpp
   Line: 677
   Stack trace:
   # 0  _ZN8facebook5velox7process10StackTraceC1Ei
   # 1  
_ZN8facebook5velox14VeloxExceptionC1EPKcmS3_St17basic_string_viewIcSt11char_traitsIcEES7_S7_S7_bNS1_4TypeES7_
   # 2  
_ZN8facebook5velox6detail14veloxCheckFailINS0_17VeloxRuntimeErrorERKSsEEvRKNS1_18VeloxCheckFailArgsET0_
   # 3  
_ZN8facebook5velox4exec6Driver11runInternalERSt10shared_ptrIS2_ERS3_INS1_13BlockingStateEERS3_INS0_9RowVectorEE.cold
   # 4  
_ZN8facebook5velox4exec6Driver4nextERSt10shared_ptrINS1_13BlockingStateEE
   # 5  _ZN8facebook5velox4exec4Task4nextEPN5folly10SemiFutureINS3_4UnitEEE
   # 6  _ZN6gluten24WholeStageResultIterator4nextEv
   # 7  Java_org_apache_gluten_vectorized_ColumnarBatchOutIterator_nativeHasNext
   # 8  0x00007f9fcb812ce8
   
        at 
org.apache.gluten.vectorized.GeneralOutIterator.hasNext(GeneralOutIterator.java:39)
        at 
scala.collection.convert.Wrappers$JIteratorWrapper.hasNext(Wrappers.scala:45)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$InvocationFlowProtection.hasNext(IteratorsV1.scala:159)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$IteratorCompleter.hasNext(IteratorsV1.scala:71)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$PayloadCloser.hasNext(IteratorsV1.scala:37)
        at 
org.apache.gluten.utils.iterator.IteratorsV1$LifeTimeAccumulator.hasNext(IteratorsV1.scala:100)
        at 
org.apache.spark.sql.execution.VeloxColumnarWriteFilesRDD.$anonfun$compute$2(VeloxColumnarWriteFilesExec.scala:208)
        at 
scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
        at 
org.apache.spark.util.Utils$.tryWithSafeFinallyAndFailureCallbacks(Utils.scala:1428)
        at 
org.apache.spark.sql.execution.VeloxColumnarWriteFilesRDD.compute(VeloxColumnarWriteFilesExec.scala:203)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:364)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:328)
        at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:93)
        at 
org.apache.spark.TaskContext.runTaskWithListeners(TaskContext.scala:161)
        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.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   ```
   


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