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(source): remove drop_source rpc in CN #5849

Merged
merged 16 commits into from
Oct 17, 2022
Merged

Conversation

PanQL
Copy link
Contributor

@PanQL PanQL commented Oct 14, 2022

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.

This pr remove drop_source rpc in CN, and remove useless SourceDesc when inserting new SourceDesc.

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)

Types of user-facing changes

  • Connector (sources & sinks)

Release note

Please create a release note for your changes. In the release note, focus on the impact on users, and mention the environment or conditions where the impact may occur.

Refer to a related PR or issue link (optional)

@codecov
Copy link

codecov bot commented Oct 14, 2022

Codecov Report

Merging #5849 (224f54e) into main (0f0e6c5) will decrease coverage by 0.24%.
The diff coverage is 58.38%.

@@            Coverage Diff             @@
##             main    #5849      +/-   ##
==========================================
- Coverage   75.09%   74.85%   -0.25%     
==========================================
  Files         920      922       +2     
  Lines      145144   146824    +1680     
==========================================
+ Hits       108996   109900     +904     
- Misses      36148    36924     +776     
Flag Coverage Δ
rust 74.85% <58.38%> (-0.25%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/batch/src/executor/hop_window.rs 69.10% <0.00%> (-0.57%) ⬇️
src/batch/src/executor/join/lookup_join.rs 58.05% <0.00%> (ø)
src/batch/src/task/context.rs 28.88% <0.00%> (ø)
src/common/src/types/ordered_float.rs 29.90% <0.00%> (ø)
src/compute/src/rpc/service/stream_service.rs 0.00% <0.00%> (ø)
src/compute/src/server.rs 0.00% <0.00%> (ø)
...c/connector/src/source/nexmark/source/generator.rs 0.00% <ø> (ø)
src/ctl/src/cmd_impl/hummock/compaction_group.rs 0.00% <0.00%> (ø)
src/ctl/src/lib.rs 0.92% <0.00%> (-0.49%) ⬇️
src/expr/src/expr/expr_binary_nonnull.rs 79.25% <0.00%> (-2.22%) ⬇️
... and 150 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

src/source/src/manager.rs Outdated Show resolved Hide resolved
src/source/src/manager.rs Outdated Show resolved Hide resolved
src/source/src/manager.rs Outdated Show resolved Hide resolved
src/stream/src/task/stream_manager.rs Outdated Show resolved Hide resolved
src/source/src/manager.rs Outdated Show resolved Hide resolved
src/source/src/manager.rs Outdated Show resolved Hide resolved
Copy link
Member

@BugenZhao BugenZhao 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!

src/source/src/manager.rs Outdated Show resolved Hide resolved
src/stream/src/task/stream_manager.rs Outdated Show resolved Hide resolved
src/source/src/manager.rs Outdated Show resolved Hide resolved
src/stream/src/task/stream_manager.rs Outdated Show resolved Hide resolved
- remove TableSourceManager trait and use MemSourceManager directly.
- remove useless source desc during insert_source instead.
@PanQL PanQL requested a review from BugenZhao October 17, 2022 12:20
Copy link
Contributor

@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

@PanQL PanQL changed the title refactor(source): WIP: remove drop_source rpc in CN refactor(source): remove drop_source rpc in CN Oct 17, 2022
@PanQL
Copy link
Contributor Author

PanQL commented Oct 17, 2022

@Mergifyio requeue

@mergify
Copy link
Contributor

mergify bot commented Oct 17, 2022

requeue

☑️ This pull request is already queued

Copy link
Member

@BugenZhao BugenZhao left a comment

Choose a reason for hiding this comment

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

LGTM! Great job!

@mergify mergify bot merged commit 6d8c3c5 into main Oct 17, 2022
@mergify mergify bot deleted the panpan/remove_drop_source branch October 17, 2022 15:47
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