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

fix: finish source backfill immediately for scan.startup.mode=latest #20285

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

xxchan
Copy link
Member

@xxchan xxchan commented Jan 23, 2025

This is a follow up of #18342.
For "there's no history data to backfill at all", we just checked low_watermark == high_watermark, but start_offset == high_watermark-1 is also a case.

We may meet this case when scan.startup.mode=latest: #20083 (comment)

Signed-off-by: xxchan [email protected]

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

Checklist

  • I have written necessary rustdoc comments.
  • I have added necessary unit tests and integration tests.
  • I have added test labels as necessary.
  • I have added fuzzing tests or opened an issue to track them.
  • My PR contains breaking changes.
  • My PR changes performance-critical code, so I will run (micro) benchmarks and present the results.
  • My PR contains critical fixes that are necessary to be merged into the latest release.

Documentation

  • My PR needs documentation updates.
Release note

This is a follow up of #18342.
For "there's no history data to backfill at all", we just checked `low_watermark == high_watermark`, but `start_offset == high_watermark-1` is also a case.

We may meet this case when `scan.startup.mode=latest`: #20083 (comment)

Signed-off-by: xxchan <[email protected]>
Comment on lines +393 to +394
statement ok
create materialized view mv_latest as select * from s_latest;
Copy link
Member Author

Choose a reason for hiding this comment

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

Before this PR, this DDL will be blocked.

Signed-off-by: xxchan <[email protected]>
Copy link

gru-agent bot commented Jan 24, 2025

This pull request has been modified. If you want me to regenerate unit test for any of the files related, please find the file in "Files Changed" tab and add a comment @gru-agent. (The github "Comment on this file" feature is in the upper right corner of each file in "Files Changed" tab.)

@xxchan xxchan added this pull request to the merge queue Jan 24, 2025
Merged via the queue into main with commit 96e8158 Jan 24, 2025
28 of 29 checks passed
@xxchan xxchan deleted the xxchan/latest_offset branch January 24, 2025 06:28
github-merge-queue bot pushed a commit that referenced this pull request Jan 24, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants