-
Notifications
You must be signed in to change notification settings - Fork 591
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
feat: pause shared SourceExecutor until a downstream actor is created #16348
Conversation
e2401f5
to
302266f
Compare
8220645
to
7774406
Compare
48b1ee4
to
afe5279
Compare
let use_shared_source = self.source_catalog().is_some_and(|c| c.info.is_shared()) | ||
&& self.ctx().session_ctx().config().rw_enable_shared_source(); | ||
// We only check rw_enable_shared_source is true when `CREATE SOURCE`. | ||
// The value does not affect the behavior of `CREATE MATERIALIZED VIEW` here. | ||
let use_shared_source = self.source_catalog().is_some_and(|c| c.info.is_shared()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this behavior because I found otherwise it's not easy to tell whether the SourceExecutor is shared. I guess this flexibility isn't very useful, so it's fine to be simpler.
57733ab
to
af290a2
Compare
7ce930f
to
01ba723
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ffe69f8
to
e18e050
Compare
e18e050
to
0d49ccb
Compare
commit ea28be3cc7c6186f93a86a3fb8bb3c8123074f8c Author: xxchan <[email protected]> Date: Thu Apr 25 21:08:32 2024 +0800 fix Signed-off-by: xxchan <[email protected]> commit 0bcc42a7ca96bdb6de9f3ee2308ee86cc1dfcd61 Author: xxchan <[email protected]> Date: Thu Apr 25 20:17:40 2024 +0800 fix Signed-off-by: xxchan <[email protected]> commit 5de9bdce1ec5f1773107f550cd4b4667877721f2 Author: xxchan <[email protected]> Date: Thu Apr 25 17:04:56 2024 +0800 resolve comment Signed-off-by: xxchan <[email protected]> commit b0f5dff1db795ff852090a572e73910874b89d1d Author: xxchan <[email protected]> Date: Wed Apr 24 08:06:41 2024 +0800 update commit f38cb387d6254ff40aac0d02d9fcbaa212ce7b32 Author: xxchan <[email protected]> Date: Wed Apr 24 08:04:04 2024 +0800 update cdc test Signed-off-by: xxchan <[email protected]> commit d5afeb8756a4c029e441b7983d069dcc8767c29e Author: xxchan <[email protected]> Date: Mon Apr 22 15:33:11 2024 +0800 fix: only resume for shared Signed-off-by: xxchan <[email protected]> commit 21163412cb1201dc2190c3b0e285e88f8e443f17 Author: xxchan <[email protected]> Date: Mon Apr 22 15:17:33 2024 +0800 clippy Signed-off-by: xxchan <[email protected]> commit 0d0a304623fff4732126b61f9a977bcb18e56dd9 Author: xxchan <[email protected]> Date: Mon Apr 22 15:00:02 2024 +0800 update tests Signed-off-by: xxchan <[email protected]> commit a0e9670e6002602fd7c508e6f79b6a1f57d291b9 Author: xxchan <[email protected]> Date: Sat Apr 20 17:48:51 2024 +0800 fix Signed-off-by: xxchan <[email protected]> commit 572eab4b35a1d4c0a2352deabd9fa307843cd2c5 Author: xxchan <[email protected]> Date: Sat Apr 20 17:10:58 2024 +0800 clean Signed-off-by: xxchan <[email protected]> commit eee0f6c78822b3d937725bd2a76af23b3b15909a Author: xxchan <[email protected]> Date: Sat Apr 20 17:08:32 2024 +0800 cleanup state table changes Signed-off-by: xxchan <[email protected]> commit ad90536448a2bd16b95b0dab629a428592a19f7d Author: xxchan <[email protected]> Date: Sat Apr 20 17:01:21 2024 +0800 refactor Signed-off-by: xxchan <[email protected]> commit 017e90ffc73993a5f88e3a02b4e78156a6b92b9a Author: xxchan <[email protected]> Date: Fri Apr 19 16:33:05 2024 +0800 add doc Signed-off-by: xxchan <[email protected]> commit b893b915997481fe61c9c6963b75b4769e5f238c Author: xxchan <[email protected]> Date: Wed Apr 17 02:18:00 2024 +0800 feat: pause shared source until a MV is created Signed-off-by: xxchan <[email protected]> Signed-off-by: xxchan <[email protected]>
0d49ccb
to
cd275e0
Compare
Signed-off-by: xxchan <[email protected]>
cd275e0
to
3a7e4ad
Compare
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
e69fc65
to
4696cda
Compare
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?
As title. Without this optimization, shared source will waste a lot work at the beginning.
This applies to shared Kafka source, and also shared CDC source.
actor_context.dispatch_num
to pause.rw_enable_shared_source
only applies toCREATE SOURCE
, but notCREATE MV
Checklist
./risedev check
(or alias,./risedev c
)Documentation
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.