-
Notifications
You must be signed in to change notification settings - Fork 595
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: only processing streaming jobs that are in the 'created' state in auto-scaling #15000
Conversation
@@ -751,6 +754,7 @@ impl GlobalBarrierManagerContext { | |||
guard | |||
.table_fragments() | |||
.iter() | |||
.filter(|&(_, table)| matches!(table.state(), State::Created)) |
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.
for auto scale in recovery (scale in & scale down)
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.
In the future perhaps we will permit scaling for background ddl 🤔 . Perhaps we should add a comment for it.
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.
Good catch, filtering by Running
actors should work.
@@ -2528,6 +2528,7 @@ impl GlobalStreamManager { | |||
guard | |||
.table_fragments() | |||
.iter() | |||
.filter(|&(_, table)| matches!(table.state(), State::Created)) |
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.
for auto scale in normal scenario (scale up & scale out)
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, let's see if the issue still exist for background ddl recovery tests.
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
as title, related #14992 .
Checklist
./risedev check
(or alias,./risedev c
)