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(meta): readability improvements on source manager #14170

Merged

Conversation

xxchan
Copy link
Member

@xxchan xxchan commented Dec 24, 2023

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. See details.
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
  • All checks passed in ./risedev check (or alias, ./risedev c)
  • My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)
  • My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

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.

@xxchan
Copy link
Member Author

xxchan commented Dec 24, 2023

@xxchan xxchan force-pushed the 12-23-refactor_meta_readability_improvements_on_source_manager branch 2 times, most recently from 527813c to bf4f58f Compare December 26, 2023 05:10
@xxchan xxchan marked this pull request as ready for review December 26, 2023 06:27
@xxchan xxchan requested a review from a team as a code owner December 26, 2023 06:27
@xxchan
Copy link
Member Author

xxchan commented Dec 26, 2023

requested review from 😄s

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.

Generally LGTM, @shanicky PTAL.

Comment on lines 1102 to 1129
Some(
{
0: [
TestSplit {
id: 2,
},
],
1: [
TestSplit {
id: 0,
},
],
2: [
TestSplit {
id: 1,
},
],
},
)
"#]],
Copy link
Member Author

Choose a reason for hiding this comment

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

It seems this isn't deterministic. Need to fix test

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed. slightly modified the logic of reassign_splits

Copy link
Contributor

@tabVersion tabVersion left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Rest LGTM

src/meta/src/stream/source_manager.rs Outdated Show resolved Hide resolved
src/meta/src/stream/source_manager.rs Show resolved Hide resolved
@xxchan xxchan force-pushed the 12-23-refactor_meta_readability_improvements_on_source_manager branch from 916e1fb to 58fa545 Compare December 26, 2023 15:09
@xxchan xxchan enabled auto-merge December 27, 2023 15:43
@xxchan
Copy link
Member Author

xxchan commented Dec 27, 2023

Need an approval from Cargo.lock @stdrc

@xxchan xxchan added this pull request to the merge queue Dec 28, 2023
Merged via the queue into main with commit d8ab569 Dec 28, 2023
35 of 36 checks passed
@xxchan xxchan deleted the 12-23-refactor_meta_readability_improvements_on_source_manager branch December 28, 2023 03:09
@xxchan xxchan mentioned this pull request Jan 9, 2024
12 tasks
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.

5 participants