[Bug]: The Direct-Load API has some non-daemon threads that cannot end normally, causing the JVM to be unable to exit normally.
还没有人认领这个 Issue。
评估
调研方向
首先检查 com.alipay.oceanbase.rpc.table.ObTable.ObTableConnectionPool,尤其是 cleanerExecutor,并在收集 jstack 日志的同时复现一次多节点 Direct-Load API 写入。完成的标准是非 daemon 线程能够正常终止,并且 JVM 在 Direct-Load 操作完成后退出。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Java
- 星标
- 32
- 派生
- 25
- 平均合并
- 20 小时 9 分钟
- 30 天内合并 PR
- 1
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
oceanbase/obkv-table-client-java 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 42/100
-
难度 3/5 1-2 天 新手友好度 25/100
查看 oceanbase/obkv-table-client-java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
OpenAPITools/openapi-generator#25014 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
openhab/openhab-core#5847 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 88/100
apache/parquet-java#3820 ·
维护者通常 1 天内回复