Skip to content

Commit

Permalink
refactor: move part of sharding API from pageserver_api to utils (#…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
yliang412 authored Jul 8, 2024
1 parent fcdf060 commit a68edad
Show file tree
Hide file tree
Showing 3 changed files with 490 additions and 479 deletions.
Loading

1 comment on commit a68edad

@github-actions
Copy link

Choose a reason for hiding this comment

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

3129 tests run: 3001 passed, 1 failed, 127 skipped (full report)


Failures on Postgres 14

  • test_lsn_lease_size[False]: debug
# Run all failed tests locally:
scripts/pytest -vv -n $(nproc) -k "test_lsn_lease_size[debug-pg14-False]"

Test coverage report is not available

The comment gets automatically updated with the latest test results
a68edad at 2024-07-08T16:12:38.129Z :recycle:

Please sign in to comment.