apache / apache/incubator-seata-samples

io.seata.samples.nacos.ApplicationKeeper#bug

Open
#108 0 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.