Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LogtailMonitor's deadlock when suicide #2085

Merged
merged 5 commits into from
Feb 12, 2025

Conversation

Takuka0311
Copy link
Collaborator

@Takuka0311 Takuka0311 commented Feb 11, 2025

资源超限时候,LogtailMonitor有个死锁,会导致进程一分钟强制退出。
image
suicide发出stop信号后,主线程会逐一进行stop,但这个monitor的stop中又去尝试获取同一把锁
image
导致stop死锁,无法正常退出。
需要确保发出stop信号时,这个锁已经释放,才能正常执行stop操作。

@Takuka0311 Takuka0311 merged commit 4d5d938 into alibaba:main Feb 12, 2025
14 of 15 checks passed
@Takuka0311 Takuka0311 deleted the fix-logtail-monitor-lock branch February 13, 2025 06:16
@henryzhx8 henryzhx8 added the bug Something isn't working label Feb 19, 2025
@henryzhx8 henryzhx8 added this to the v3.0 milestone Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants