-
Notifications
You must be signed in to change notification settings - Fork 499
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
stability: add more checks for scale & upgrade #327
Conversation
tidb stability main func
* test: add fault-trigger server
…ingcap#316) * add restore and backup process
* impl scale & upgrade cases
* add slack
* add log dump
* stability: add fault-trigger client
* monitor checker * fix bugs
* add blockWriter case to insert data
* add scheduled-backup test case
tests/cmd/e2e/main.go
Outdated
|
||
dumplogs := func() error { return oa.DumpAllLogs(operatorInfo, []*tests.TidbClusterInfo{clusterInfo}) } | ||
|
||
// scale out: tidb 2 -> 3, tikv 3 -> 5 |
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.
PD should also be scaled out
tests/cmd/e2e/main.go
Outdated
perror(oa.CheckTidbClusterStatus(clusterInfo), dumplogs) | ||
perror(oa.CheckScaledCorrectly(clusterInfo, podUIDsBeforeScale), dumplogs) | ||
|
||
// scale in: tikv 5 -> 3 |
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.
scale in all the three components
tests/actions.go
Outdated
@@ -416,6 +423,63 @@ func (oa *operatorActions) ScaleTidbCluster(info *TidbClusterInfo) error { | |||
return nil | |||
} | |||
|
|||
func (oa *operatorActions) CheckScaleInSafely(info *TidbClusterInfo) error { | |||
return wait.Poll(5*time.Second, DefaultPollTimeout, func() (done bool, err error) { |
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.
use DefaultPollInterval
* stability: port ddl test as a workload * stability: rename pkg/blockWriter to pkg/blockwriter
@zyguan Please resolve the conflicts |
Co-authored-by: Ran <huangran@pingcap.com>
This PR addresses #309 (comment) .