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

[kv store] add watermark table to bigtable #20390

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

phoenix-o
Copy link
Contributor

Description

The PR adds a watermark table to BigTable. The internal workflow progress store now writes watermarks to both DynamoDB and BigTable. In the future, the DynamoDB progress store will be deprecated


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):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

Copy link

vercel bot commented Nov 22, 2024

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

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Nov 22, 2024 2:43pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Nov 22, 2024 2:43pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Nov 22, 2024 2:43pm

@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env November 22, 2024 14:43 — with GitHub Actions Inactive
@phoenix-o phoenix-o marked this pull request as ready for review November 22, 2024 15:16
@phoenix-o phoenix-o temporarily deployed to sui-typescript-aws-kms-test-env November 22, 2024 15:16 — with GitHub Actions Inactive
Some((key_bytes, _)) => Ok(u64::from_be_bytes(key_bytes.as_slice().try_into()?)),
None => Ok(0),
}
self.get_watermark(AGGREGATED_WATERMARK_NAME).await
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain what "AGGREGATED_WATERMARK_NAME" is and why we wouldn't use the checkpoint task name? Or do we just have 1 "task" that is responsible for all the bigtable writes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, we have a single task for all BigTable writes.
On the sui-data-ingestion side, DDB will be eventually replaced with BigTable, so our instance will store multiple entries for different workflows (e.g., archival, blob storage, etc.).
For community deployments, however, there will be only a single entry

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