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

[WIP] Utilize temp cache and skip syncOffset during CATCHING_UP phase #976

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

Conversation

zx0401
Copy link
Contributor

@zx0401 zx0401 commented May 7, 2024

[changelog][BootstrappingVeniceChangelogConsumer] Utilize temp cache and skip syncOffset during CATCHING_UP phase to improve bootstrapping performance

Summary, imperative, start upper case, don't end with a period

  • Skip syncOffset during CATCHING_UP phase
  • During CATCHING_UP phase, we'll save raw data in a temporary hash map
  • On completion of CATCHING_UP, we'll process records in temporary hash map and save in storage

How was this PR tested?

  • unit test

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

@zx0401 zx0401 marked this pull request as ready for review May 7, 2024 21:14
// To improve bootstrapping performance, we'll put raw data in a temp cache (hashmap) and will
// process save to underlying storage on CATCHING_UP completion. Besides, we'll also skip RocksDB syncOffset.
if (bootstrapState.bootstrapState == PollState.CATCHING_UP) {
bootstrapState
Copy link
Contributor

Choose a reason for hiding this comment

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

idk about this. It seems like the cache could grow to a pretty large size. We should probably put a size safety check in here to control flushing to disk.

@zx0401 zx0401 changed the title Utilize temp cache and skip syncOffset during CATCHING_UP phase [WIP] Utilize temp cache and skip syncOffset during CATCHING_UP phase May 9, 2024
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