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

Persist safekeeper control file once in a while. #4438

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

arssher
Copy link
Contributor

@arssher arssher commented Jun 7, 2023

It should make remote_consistent_lsn commonly up-to-date on non actively writing projects, which removes spike or pageserver -> safekeeper reconnections on storage nodes restart.

@arssher arssher requested a review from a team as a code owner June 7, 2023 08:55
@arssher arssher requested review from petuhovskiy and removed request for a team June 7, 2023 08:55
safekeeper/src/safekeeper.rs Outdated Show resolved Hide resolved
It should make remote_consistent_lsn commonly up-to-date on non actively writing
projects, which removes spike or pageserver -> safekeeper reconnections on
storage nodes restart.
Copy link
Member

@petuhovskiy petuhovskiy left a comment

Choose a reason for hiding this comment

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

This may help with #4414, but I think we still need to persist control file on disconnect and also persist commit_lsn and other fields as well. Can be done in another PR.

@arssher
Copy link
Contributor Author

arssher commented Jun 7, 2023

Ok, but note that commit_lsn is also persisted here.

@arssher arssher enabled auto-merge (rebase) June 7, 2023 09:24
@petuhovskiy
Copy link
Member

Ok, but note that commit_lsn is also persisted here.

Right, I mixed up .persist_control_file and .state.persist in my head 🤦

@github-actions
Copy link

github-actions bot commented Jun 7, 2023

1000 tests run: 959 passed, 0 failed, 41 skipped (full report)


Flaky tests (1)

Postgres 15

The comment gets automatically updated with the latest test results
f3454b0 at 2023-06-07T10:01:40.742Z :recycle:

@arssher arssher merged commit 37bf2ca into main Jun 7, 2023
@arssher arssher deleted the sk-persist-cf-regularly branch June 7, 2023 13:23
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