Skip to content

Commit

Permalink
ConfigMapRollout should be enabled by default in stability test
Browse files Browse the repository at this point in the history
Signed-off-by: Aylei <rayingecho@gmail.com>
  • Loading branch information
aylei committed Oct 22, 2019
1 parent 302f763 commit d5be278
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3019,7 +3019,7 @@ func (oa *operatorActions) CheckManualPauseTiDBOrDie(info *TidbClusterConfig) {

func (oa *operatorActions) CheckUpgradeComplete(info *TidbClusterConfig) error {
ns, tcName := info.Namespace, info.ClusterName
if err := wait.PollImmediate(15*time.Second, DefaultPollTimeout, func() (done bool, err error) {
if err := wait.PollImmediate(15*time.Second, 30*time.Minute, func() (done bool, err error) {
tc, err := oa.cli.PingcapV1alpha1().TidbClusters(ns).Get(tcName, metav1.GetOptions{})
if err != nil {
glog.Errorf("checkUpgradeComplete, [%s/%s] cannot get tidbcluster, %v", ns, tcName, err)
Expand Down
11 changes: 5 additions & 6 deletions tests/cmd/stability/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ func run() {

// configuration change
for _, cluster := range clusters {
cluster.EnableConfigMapRollout = true

// bad conf
cluster.TiDBPreStartScript = strconv.Quote("exit 1")
cluster.TiKVPreStartScript = strconv.Quote("exit 1")
Expand Down Expand Up @@ -436,9 +434,10 @@ func newTidbClusterConfig(ns, clusterName string) *tests.TidbClusterConfig {
"binlog.drainer.workerCount": "1024",
"binlog.drainer.txnBatch": "512",
},
Monitor: true,
BlockWriteConfig: cfg.BlockWriter,
TopologyKey: topologyKey,
ClusterVersion: tidbVersion,
Monitor: true,
BlockWriteConfig: cfg.BlockWriter,
TopologyKey: topologyKey,
ClusterVersion: tidbVersion,
EnableConfigMapRollout: true,
}
}

0 comments on commit d5be278

Please sign in to comment.