Skip to content

reader-alt: evict system packages using DB #22116

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

Merged
merged 0 commits into from
May 19, 2025

Conversation

amnn
Copy link
Contributor

@amnn amnn commented May 12, 2025

Description

Rather than using a hard-coded list of system packages from sui-types, use the kv_packages table to fetch the system packages at the current checkpoint.

Test plan

Manual testing. Start the RPC -- it will run the system package eviction task a couple of seconds after it starts, and a log message should show which packages were evicted:

2025-05-11T20:14:00.508626Z  INFO sui_indexer_alt_reader::system_package_task: Detected epoch boundary last_epoch=0 next_epoch=760
2025-05-11T20:14:00.863414Z  INFO sui_indexer_alt_reader::system_package_task: Evicting... system_packages=[0000000000000000000000000000000000000000000000000000000000000002, 0000000000000000000000000000000000000000000000000000000000000001, 0000000000000000000000000000000000000000000000000000000000000003, 000000000000000000000000000000000000000000000000000000000000dee9, 000000000000000000000000000000000000000000000000000000000000000b]

Stack


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

@amnn amnn requested review from emmazzz and wlmyng May 12, 2025 22:37
@amnn amnn self-assigned this May 12, 2025
Copy link

vercel bot commented May 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 19, 2025 1:48pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview May 19, 2025 1:48pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview May 19, 2025 1:48pm

@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 12, 2025 22:37 — with GitHub Actions Inactive
@amnn amnn force-pushed the amnn/gql-pipeline-config branch from 9392b1a to 529b0f6 Compare May 15, 2025 13:29
@amnn amnn force-pushed the amnn/rdr-sys-evict branch from 38b976e to dec594c Compare May 15, 2025 13:29
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 15, 2025 13:30 — with GitHub Actions Inactive
@amnn amnn force-pushed the amnn/gql-pipeline-config branch from 529b0f6 to 62f6305 Compare May 15, 2025 14:50
@amnn amnn force-pushed the amnn/rdr-sys-evict branch from dec594c to 246367f Compare May 15, 2025 14:50
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 15, 2025 14:51 — with GitHub Actions Inactive
@amnn amnn force-pushed the amnn/gql-pipeline-config branch from 62f6305 to 5af395c Compare May 17, 2025 12:51
@amnn amnn force-pushed the amnn/rdr-sys-evict branch from 246367f to 32374fa Compare May 17, 2025 12:51
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 17, 2025 12:51 — with GitHub Actions Inactive
@amnn amnn force-pushed the amnn/rdr-sys-evict branch from 32374fa to 4e311d0 Compare May 19, 2025 13:45
@amnn amnn requested a review from mystenmark as a code owner May 19, 2025 13:45
@amnn amnn merged commit 4e311d0 into amnn/gql-pipeline-config May 19, 2025
3 of 6 checks passed
@amnn amnn force-pushed the amnn/gql-pipeline-config branch from 5af395c to 4e311d0 Compare May 19, 2025 13:45
@amnn amnn deleted the amnn/rdr-sys-evict branch May 19, 2025 13:45
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:45 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:45 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:45 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:45 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:45 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:45 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:45 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:46 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:46 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:46 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:46 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:46 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:46 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:46 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:46 — with GitHub Actions Inactive
@amnn amnn temporarily deployed to sui-typescript-aws-kms-test-env May 19, 2025 13:47 — with GitHub Actions Inactive
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.

2 participants