-
Notifications
You must be signed in to change notification settings - Fork 456
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
Grant optional lease to get_lsn_by_timestamp request #8072
Comments
should there be a new field |
Based on the slack discussion, I'm inclined to add |
sounds good |
Last week: finished implementation. This week: merge PR after metrics are added in. |
…PI (#8104) Part of #7497, closes #8072. ## Problem Currently the `get_lsn_by_timestamp` and branch creation pageserver APIs do not provide a pleasant client experience where the looked-up LSN might be GC-ed between the two API calls. This PR attempts to prevent common races between GC and branch creation by making use of LSN leases provided in #8084. A lease can be optionally granted to a looked-up LSN. With the lease, GC will not touch layers needed to reconstruct all pages at this LSN for the duration of the lease. Signed-off-by: Yuchen Liang <yuchen@neon.tech>
Part of #7497.
An
with_lease
field is added to theget_lsn_by_timestamp
request so we can optionally grant leases to valid LSNs eligible for branch creation.The text was updated successfully, but these errors were encountered: