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

refactor: distinguish between placeholder and compat for vnode count #18976

Merged
merged 8 commits into from
Oct 21, 2024

Conversation

BugenZhao
Copy link
Member

@BugenZhao BugenZhao commented Oct 17, 2024

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

What's changed and what's your intention?

Distinguish between the placeholder value and backward-compatible value for vnode_count field in table catalog.

During the process of creating a streaming job, incomplete catalogs will be temporarily synchronized to the frontend nodes, where vnode_count remains placeholders. This PR prevents access to vnode_count in this scenario, avoiding hitting the backward-compatibility path that could silently and inadvertently return an incorrect value.

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • All checks passed in ./risedev check (or alias, ./risedev c)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note

If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

@BugenZhao
Copy link
Member Author

The CI is expected to fail now because the revealed issue will be resolved in an unmerged PR (#18944).

@BugenZhao BugenZhao force-pushed the bz/var-vnode-more-check branch from be6983e to 7221dd5 Compare October 18, 2024 02:41
@BugenZhao BugenZhao changed the base branch from main to bz/create-mv-only-notify-complete-catalogs October 18, 2024 02:41
@BugenZhao BugenZhao force-pushed the bz/create-mv-only-notify-complete-catalogs branch from 0c7b344 to b365566 Compare October 18, 2024 02:55
@BugenZhao BugenZhao force-pushed the bz/var-vnode-more-check branch from 7221dd5 to 6c15e17 Compare October 18, 2024 02:57
@BugenZhao BugenZhao changed the base branch from bz/create-mv-only-notify-complete-catalogs to main October 18, 2024 02:57
@BugenZhao BugenZhao force-pushed the bz/var-vnode-more-check branch from 6c15e17 to 7a50b0b Compare October 18, 2024 02:59
@BugenZhao BugenZhao changed the base branch from main to bz/create-mv-only-notify-complete-catalogs October 18, 2024 02:59
@BugenZhao
Copy link
Member Author

The CI is expected to fail now because the revealed issue will be resolved in an unmerged PR (#18944).

We have now changed the base to #18944, which should pass the CI.

Copy link
Member

@stdrc stdrc left a comment

Choose a reason for hiding this comment

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

LGTM

@BugenZhao BugenZhao force-pushed the bz/var-vnode-more-check branch from 7a50b0b to e023ece Compare October 18, 2024 09:49
Copy link
Member

@yezizp2012 yezizp2012 left a comment

Choose a reason for hiding this comment

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

LGTM

@BugenZhao BugenZhao force-pushed the bz/var-vnode-more-check branch 2 times, most recently from 265a7ac to ad6d5f5 Compare October 21, 2024 07:44
Base automatically changed from bz/create-mv-only-notify-complete-catalogs to main October 21, 2024 08:29
@BugenZhao BugenZhao force-pushed the bz/var-vnode-more-check branch from ad6d5f5 to c6ca978 Compare October 21, 2024 08:33
@BugenZhao BugenZhao enabled auto-merge October 21, 2024 08:33
Signed-off-by: Bugen Zhao <[email protected]>
@BugenZhao BugenZhao added this pull request to the merge queue Oct 21, 2024
Merged via the queue into main with commit ff61c88 Oct 21, 2024
33 of 34 checks passed
@BugenZhao BugenZhao deleted the bz/var-vnode-more-check branch October 21, 2024 10:07
github-actions bot pushed a commit that referenced this pull request Oct 22, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 22, 2024
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