obkv-table-client-java icon indicating copy to clipboard operation
obkv-table-client-java copied to clipboard

[Bug]: The Direct-Load API has some non-daemon threads that cannot end normally, causing the JVM to be unable to exit normally.

Open yuanoOo opened this issue 10 months ago • 0 comments

Describe the bug

The Direct-Load API has some non-daemon threads that cannot end normally, causing the JVM to be unable to exit normally.

Environment

master branch:088b828

version:1.3.1-SNAPSHOT

Fast reproduce steps

Using Direct-Load API for multi node write

  • Jstack log
"pool-35-thread-1" #84 prio=5 os_prio=31 tid=0x000000013f8a3800 nid=0xc703 waiting on condition [0x0000000306652000]
   java.lang.Thread.State: TIMED_WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000006c22dcba0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2083)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:750)

   Locked ownable synchronizers:
	- None

"pool-34-thread-1" #83 prio=5 os_prio=31 tid=0x000000013f8a2800 nid=0xec03 waiting on condition [0x0000000306446000]
   java.lang.Thread.State: TIMED_WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000006c22a9a70> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2083)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:750)

   Locked ownable synchronizers:
	- None
  • After troubleshooting, it was caused by the following thread pool.
    • com.alipay.oceanbase.rpc.table.ObTable.ObTableConnectionPool#cleanerExecutor

Expected behavior

No response

Actual behavior

No response

Additional context

No response

yuanoOo avatar Jan 06 '25 09:01 yuanoOo