Skip to content

[IOTDB-5659] Fix dead lock condition in shutdown hook#9274

Merged
OneSizeFitsQuorum merged 1 commit intoapache:masterfrom
SzyWilliam:shutdown_proper
Mar 10, 2023
Merged

[IOTDB-5659] Fix dead lock condition in shutdown hook#9274
OneSizeFitsQuorum merged 1 commit intoapache:masterfrom
SzyWilliam:shutdown_proper

Conversation

@SzyWilliam
Copy link
Member

Current stop hook produces dead lock situations that prevent the process to terminate.

Ratis waits applyIndex to advance to commitIndex. However, it cannot be done when node is ReadOnly.

Copy link
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

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

LGTM~
As ugly as I think this is, we really don't have a better idea right now, and hope that someone in the future will save us

Copy link
Collaborator

@HxpSerein HxpSerein left a comment

Choose a reason for hiding this comment

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

LGTM~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants