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

RATIS-2194. FileLock didn't unlock properly #1183

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

chungen0126
Copy link
Contributor

What changes were proposed in this pull request?

Found OverlappingFileLockExceptio when restarting RaftServer.

When closing RaftServerProxy, all RaftServerImpl in implMap should be closed. However, if there was a new RaftServerImpl started by RaftServerProxy#groupManagementAsync, it would not be closed properly. The log will say that the new RaftServerImpl has been closed, but its raft store is still being initialised by implExecutor.

Things change:

  • Closing implExecutor before closing implMap prevents RaftServerImpl from starting after it is closed by implMap.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/RATIS-2194

How was this patch tested?

https://github.com/chungen0126/ratis/actions/runs/12008556158

@chungen0126 chungen0126 marked this pull request as ready for review November 25, 2024 15:17
Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

+1 the change looks good.

@szetszwo szetszwo merged commit ccbe9a6 into apache:master Nov 26, 2024
12 checks passed
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.

2 participants