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

refactor: move part of sharding API from pageserver_api to utils #8254

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

yliang412
Copy link
Contributor

@yliang412 yliang412 commented Jul 3, 2024

Problem

LSN Leases introduced in #8084 is a new API that is made shard-aware from day 1. To support ephemeral endpoint in #7994 without linking Postgres C API against compute_ctl, part of the sharding needs to reside in utils.

Summary of changes

  • Create a new shard module in utils crate.
  • Move more interface related part of tenant sharding API to utils and re-export them in pageserver_api.

Copy link

github-actions bot commented Jul 3, 2024

3042 tests run: 2927 passed, 0 failed, 115 skipped (full report)


Code coverage* (full report)

  • functions: 32.6% (6934 of 21279 functions)
  • lines: 50.0% (54543 of 109055 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
e5b4890 at 2024-07-08T14:18:07.031Z :recycle:

Signed-off-by: Yuchen Liang <yuchen@neon.tech>
@yliang412 yliang412 force-pushed the yuchen/move-tenant-shard-id branch from c71f7eb to 294662b Compare July 4, 2024 14:24
@yliang412 yliang412 changed the title [DNM] testing restructuring part of sharding to utils [DNM] refactor: move part of tenant sharding to utils Jul 4, 2024
@yliang412 yliang412 changed the title [DNM] refactor: move part of tenant sharding to utils [DNM] refactor: move part of sharding API from pageserver_api to utils Jul 4, 2024
@yliang412 yliang412 changed the title [DNM] refactor: move part of sharding API from pageserver_api to utils refactor: move part of sharding API from pageserver_api to utils Jul 4, 2024
@yliang412 yliang412 marked this pull request as ready for review July 4, 2024 14:58
@yliang412 yliang412 requested a review from a team as a code owner July 4, 2024 14:58
@yliang412 yliang412 requested a review from arssher July 4, 2024 14:58
@yliang412 yliang412 self-assigned this Jul 4, 2024
@yliang412 yliang412 requested a review from skyzh July 5, 2024 14:08
Copy link
Member

@skyzh skyzh left a comment

Choose a reason for hiding this comment

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

LGTM

@yliang412 yliang412 enabled auto-merge (squash) July 5, 2024 15:04
@yliang412 yliang412 merged commit a68edad into main Jul 8, 2024
65 checks passed
@yliang412 yliang412 deleted the yuchen/move-tenant-shard-id branch July 8, 2024 14:43
skyzh pushed a commit that referenced this pull request Jul 15, 2024
…8254)

## Problem

LSN Leases introduced in #8084 is a new API that is made shard-aware
from day 1. To support ephemeral endpoint in #7994 without linking
Postgres C API against `compute_ctl`, part of the sharding needs to
reside in `utils`.

## Summary of changes

- Create a new `shard` module in utils crate.
- Move more interface related part of tenant sharding API to utils and
re-export them in pageserver_api.

Signed-off-by: Yuchen Liang <yuchen@neon.tech>
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.

None yet

2 participants