Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

fix(graceful_exit): adjust the destructing order #843

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

zhangyifan27
Copy link
Contributor

@zhangyifan27 zhangyifan27 commented Jun 10, 2021

See apache/incubator-pegasus#734 for coredump stack details.

The stack shows that we still want to enqueue some tasks when task_worker_pool is destroyed.

This patch explicitly specified the order in which service_app , rpc_engine and task_engine stop in ~service_node(), which is the reverese order they start.

@zhangyifan27 zhangyifan27 added the type/bug-fix This PR fixes a bug. label Jun 10, 2021
Copy link
Contributor

@neverchanje neverchanje left a comment

Choose a reason for hiding this comment

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

LGTM

@levy5307 levy5307 merged commit e70d406 into XiaoMi:master Jun 16, 2021
foreverneverer pushed a commit to foreverneverer/rdsn that referenced this pull request Jun 22, 2021
zhangyifan27 added a commit to zhangyifan27/rdsn that referenced this pull request Jul 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.2.1 type/bug-fix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants