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:[TD-30915]tmq exit elegantly #26454

Merged
merged 5 commits into from
Jul 11, 2024
Merged

fix:[TD-30915]tmq exit elegantly #26454

merged 5 commits into from
Jul 11, 2024

Conversation

wangmm0220
Copy link
Contributor

No description provided.

@@ -1083,6 +1092,18 @@ static void tmqMgmtInit(void) {
}
}

void tmqMgmtClose(void) {
if (tmqMgmt.timer) {
taosTmrCleanUp(tmqMgmt.timer);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

大概看了一下这个函数,感觉cleanup并不能保证timer不会被回调掉,如果是这样那是不是还是不能保证不会crash?如果是这样,还不如不清空appInst,除非能找到稳定可靠的退出机制

@dapan1121 dapan1121 merged commit 6e6c629 into main Jul 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants