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

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   several queries suffers from this bug. all task threads hangs during 
shuffle. The call stack:
   
   org.apache.gluten.vectorized.ColumnarBatchOutIterator.nativeSpill(Native 
Method)
   
org.apache.gluten.vectorized.ColumnarBatchOutIterator.spill(ColumnarBatchOutIterator.java:80)
   
org.apache.gluten.vectorized.NativePlanEvaluator$1.spill(NativePlanEvaluator.java:87)
   
org.apache.gluten.memory.memtarget.Spillers$AppendableSpillerList.spill(Spillers.java:83)
   
org.apache.gluten.memory.memtarget.Spillers$WithMinSpillSize.spill(Spillers.java:66)
   
org.apache.gluten.memory.memtarget.TreeMemoryTargets.spillTree(TreeMemoryTargets.java:80)
   
org.apache.gluten.memory.memtarget.TreeMemoryTargets.spillTree(TreeMemoryTargets.java:55)
   
org.apache.gluten.memory.memtarget.TreeMemoryTargets.spillTree(TreeMemoryTargets.java:73)
   
org.apache.gluten.memory.memtarget.TreeMemoryTargets.spillTree(TreeMemoryTargets.java:55)
   
org.apache.gluten.memory.memtarget.TreeMemoryTargets.spillTree(TreeMemoryTargets.java:73)
   
org.apache.gluten.memory.memtarget.TreeMemoryTargets.spillTree(TreeMemoryTargets.java:55)
   
org.apache.gluten.memory.memtarget.spark.TreeMemoryConsumer.spill(TreeMemoryConsumer.java:115)
   
org.apache.spark.memory.TaskMemoryManager.acquireExecutionMemory(TaskMemoryManager.java:213)
 => holding Monitor(org.apache.spark.memory.TaskMemoryManager@1576620541})
   org.apache.spark.memory.MemoryConsumer.acquireMemory(MemoryConsumer.java:136)
   
org.apache.gluten.memory.memtarget.spark.TreeMemoryConsumer.borrow(TreeMemoryConsumer.java:65)
   
org.apache.gluten.memory.memtarget.TreeMemoryTargets$Node.borrow0(TreeMemoryTargets.java:126)
   
org.apache.gluten.memory.memtarget.TreeMemoryTargets$Node.borrow(TreeMemoryTargets.java:118)
   
org.apache.gluten.memory.memtarget.TreeMemoryTargets$Node.borrow0(TreeMemoryTargets.java:126)
   
org.apache.gluten.memory.memtarget.TreeMemoryTargets$Node.borrow(TreeMemoryTargets.java:118)
   org.apache.gluten.memory.memtarget.OverAcquire.borrow(OverAcquire.java:56)
   
org.apache.gluten.memory.memtarget.ThrowOnOomMemoryTarget.borrow(ThrowOnOomMemoryTarget.java:35)
   
org.apache.gluten.memory.listener.ManagedReservationListener.reserve(ManagedReservationListener.java:43)
 => holding 
Monitor(org.apache.gluten.memory.listener.ManagedReservationListener@223726602})
   org.apache.gluten.vectorized.ColumnarBatchOutIterator.nativeHasNext(Native 
Method)
   
org.apache.gluten.vectorized.ColumnarBatchOutIterator.hasNextInternal(ColumnarBatchOutIterator.java:61)
   
org.apache.gluten.vectorized.GeneralOutIterator.hasNext(GeneralOutIterator.java:37)
   scala.collection.convert.Wrappers$JIteratorWrapper.hasNext(Wrappers.scala:43)
   
org.apache.gluten.utils.iterator.IteratorsV1$InvocationFlowProtection.hasNext(IteratorsV1.scala:159)
   
org.apache.gluten.utils.iterator.IteratorsV1$IteratorCompleter.hasNext(IteratorsV1.scala:71)
   
org.apache.gluten.utils.iterator.IteratorsV1$PayloadCloser.hasNext(IteratorsV1.scala:37)
   
org.apache.gluten.utils.iterator.IteratorsV1$LifeTimeAccumulator.hasNext(IteratorsV1.scala:100)
   
org.apache.gluten.utils.iterator.IteratorsV1$ReadTimeAccumulator.hasNext(IteratorsV1.scala:127)
   scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:458)
   scala.collection.convert.Wrappers$IteratorWrapper.hasNext(Wrappers.scala:31)
   
org.apache.gluten.vectorized.GeneralInIterator.hasNext(GeneralInIterator.java:31)
   org.apache.gluten.vectorized.ColumnarBatchOutIterator.nativeHasNext(Native 
Method)
   
org.apache.gluten.vectorized.ColumnarBatchOutIterator.hasNextInternal(ColumnarBatchOutIterator.java:61)
   
org.apache.gluten.vectorized.GeneralOutIterator.hasNext(GeneralOutIterator.java:37)
   scala.collection.convert.Wrappers$JIteratorWrapper.hasNext(Wrappers.scala:43)
   
org.apache.gluten.utils.iterator.IteratorsV1$ReadTimeAccumulator.hasNext(IteratorsV1.scala:127)
   
org.apache.gluten.utils.iterator.IteratorsV1$PayloadCloser.hasNext(IteratorsV1.scala:37)
   
org.apache.gluten.utils.iterator.IteratorsV1$IteratorCompleter.hasNext(IteratorsV1.scala:71)
   scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:458)
   scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:458)
   
org.apache.spark.shuffle.ColumnarShuffleWriter.internalWrite(ColumnarShuffleWriter.scala:121)
   
org.apache.spark.shuffle.ColumnarShuffleWriter.write(ColumnarShuffleWriter.scala:231)
   
org.apache.spark.shuffle.ShuffleWriteProcessor.write(ShuffleWriteProcessor.scala:59)
   org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:99)
   org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:52)
   org.apache.spark.scheduler.Task.run(Task.scala:131)
   
org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:506)
   
org.apache.spark.executor.Executor$TaskRunner$$Lambda$648/859690736.apply(Unknown
 Source)
   org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1471)
   org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:509)
   
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   java.lang.Thread.run(Thread.java:750)
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   spark3.2
   
   ### System information
   
   Velox System Info v0.0.2
   Commit: 34dbec25d204fcb302893429350d37081feb5edf
   CMake Version: 3.29.4
   System: Linux-5.4.0-1063-aws
   Arch: x86_64
   CPU Name: Model name:                      Intel(R) Xeon(R) Platinum 8488C
   C++ Compiler: /usr/bin/c++
   C++ Compiler Version: 9.4.0
   C Compiler: /usr/bin/cc
   C Compiler Version: 9.4.0
   CMake Prefix Path: /usr/local;/usr;/;/usr;/usr/local;/usr/X11R6;/usr/pkg;/opt
   
   
   ### Relevant logs
   
   _No response_


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