-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
ddl : fix concurrent add partition problem #8783
Conversation
@zimulala @crazycs520 PTAL |
s/parallel/concurrent/ |
@@ -673,6 +684,14 @@ func (s *testStateChangeSuite) testControlParallelExecSQL(c *C, sql1, sql2 strin | |||
c.Assert(err, IsNil) | |||
defer s.se.Execute(context.Background(), "drop table t") | |||
|
|||
_, err = s.se.Execute(context.Background(), "drop database if exists t_part") |
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 think we can add an argument to distinguish between using a partitioned table or a general table.
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.
@zimulala master branch has opened the range partition table by default.
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.
@zimulala PTAL.
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.
Please address the comment. Mostly LGTM.
@tiancaiamao PTAL |
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
Please cherry-pick this PR to 2.1. |
/run-all-tests |
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
What problem does this PR solve?
When adding partitions in concurrent, there is a problem if the
values less than
are not checked after the ddl job is enqueued.What is changed and how it works?
checkAddPartitionValue
This function should also be evaluated once inonAddTablePartition
.Check List
Tests
This change is