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: log error but not crash if found an imcomplete replica path #1428

Merged
merged 3 commits into from
Apr 4, 2023

Conversation

acelyc111
Copy link
Member

@acelyc111 acelyc111 commented Apr 3, 2023

#1383

The replica instance path will be removed to trash path, a.k.a
<table_id>.<pid>.<timestamp>.err, but it may not complete when
a replica server crash, then the path is left but some files
(e.g. .init-info) in the path have been moved. When restart
the server after that, server will crash because of a check on
existence of the files, which is not necessary, the server is
able to trash the corrupt path and start normally, the missing
replica can be recovered from other servers automatically.

This patch removes the check.

@github-actions github-actions bot added the cpp label Apr 3, 2023
@acelyc111 acelyc111 marked this pull request as ready for review April 4, 2023 08:51
@acelyc111 acelyc111 merged commit 0199ede into apache:master Apr 4, 2023
@empiredan empiredan mentioned this pull request Aug 21, 2023
GehaFearless pushed a commit to GehaFearless/incubator-pegasus that referenced this pull request Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants