Skip to content

Conversation

@yiguolei
Copy link
Contributor

No description provided.

}
schemaChangeJob.cancel(olapTable, "user cancelled");
}
Preconditions.checkNotNull(schemaChangeJobV2, "Table[" + tableName + "] is not under SCHEMA_CHANGE.");
Copy link
Contributor

Choose a reason for hiding this comment

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

How about throw DdlException? just like rollup job

// alter jobs == 0
// If the FE version upgrade from old version, if it have alter jobs, the FE will failed during start process
// the number of old version alter jobs has to be 0
int size = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need to write this size now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need write size.
When use this fe version to replace old fe version, the old fe version does not have any old alter jobs, so that the size == 0. And the new fe version will load size and find it is 0, so that it will skip to load old alter jobs.
If not write size = 0, the new fe version dump the image and try to restart it will fail because it will load size...

Copy link
Contributor

Choose a reason for hiding this comment

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

I see


// finished or cancelled jobs
size = finishedOrCancelledAlterJobs.size();
size = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need to write this size now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need write size.
When use this fe version to replace old fe version, the old fe version does not have any old alter jobs, so that the size == 0. And the new fe version will load size and find it is 0, so that it will skip to load old alter jobs.
If not write size = 0, the new fe version dump the image and try to restart it will fail because it will load size...

yiguolei and others added 4 commits February 13, 2022 11:22
Co-authored-by: Mingyu Chen <morningman.cmy@gmail.com>
Co-authored-by: Mingyu Chen <morningman.cmy@gmail.com>
Co-authored-by: Mingyu Chen <morningman.cmy@gmail.com>
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman morningman added the kind/refactor Issues or PRs to refactor code label Feb 13, 2022
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Feb 13, 2022
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@morningman morningman merged commit 1ff0df9 into apache:master Feb 14, 2022
morningman added a commit that referenced this pull request May 3, 2022
stalary pushed a commit to stalary/doris that referenced this pull request May 5, 2022
morningman added a commit that referenced this pull request May 6, 2022
Kikyou1997 pushed a commit to Kikyou1997/incubator-doris that referenced this pull request May 9, 2022
starocean999 pushed a commit to starocean999/incubator-doris that referenced this pull request May 19, 2022
englefly pushed a commit to englefly/incubator-doris that referenced this pull request May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. kind/refactor Issues or PRs to refactor code reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants