-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Bug] Fix alter table failed when none of new load jobs succeed on alter replica #5617
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
Conversation
| partition.visualiseShadowIndex(rollupIndexId, false); | ||
| } | ||
| tbl.rebuildFullSchema(); | ||
| tbl.setState(OlapTableState.NORMAL); |
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.
We can to batch rollup jobs, and I think the table's state should be set to NORMAL after all jobs are done,
which is in MaterializedViewHandler.onJobDone()
| partition.deleteRollupIndex(rollupIndexId); | ||
| } | ||
| tbl.deleteIndexInfo(rollupIndexName); | ||
| tbl.setState(OlapTableState.NORMAL); |
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.
Same as above
morningman
left a comment
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
…ter replica (apache#5617) * [Bug] Fix alter table failed when none of new load jobs succeed on altering replica Co-authored-by: caiconghui <caiconghui@xiaomi.com>
apache#57696 (apache#5617) cherry-picks from apache#57696 Related to apache#5571 Co-authored-by: lw112 <131352377+felixwluo@users.noreply.github.com>
Proposed changes
If none of new load jobs succeed on alter replica. the version can still be (0-1), and the replica's last failed version may be smaller than the specified version before which the history data has been transformed successfully. , because new load job may load data into alter replica with version smaller than the specified version.
Types of changes
What types of changes does your code introduce to Doris?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...