apache / apache/incubator-seata-samples
io.seata.samples.nacos.ApplicationKeeper#bug
Open
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
keep方法用的是synchronized锁,object.wait
addShutdownHook钩子函数里面通知 使用的condition。这里是个bug
wait和notify 需要两端保持一致
Contributor guide
Research direction
Start with io.seata.samples.nacos.ApplicationKeeper, reading the keep method and the addShutdownHook hook. Compare the synchronization used by object.wait with the mechanism used for notification, then verify that both sides use the same coordination approach and that the sample still shuts down cleanly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- Half a day
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100