Skip to content

Commit

Permalink
Cherry-pick pingcap#1036
Browse files Browse the repository at this point in the history
  • Loading branch information
aylei committed Oct 22, 2019
1 parent aa1b022 commit 3692224
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -2811,7 +2811,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
9 changes: 4 additions & 5 deletions tests/cmd/stability/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,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 @@ -400,8 +398,9 @@ func newTidbClusterConfig(ns, clusterName string) *tests.TidbClusterConfig {
"binlog.drainer.workerCount": "1024",
"binlog.drainer.txnBatch": "512",
},
Monitor: true,
BlockWriteConfig: cfg.BlockWriter,
TopologyKey: topologyKey,
Monitor: true,
BlockWriteConfig: cfg.BlockWriter,
TopologyKey: topologyKey,
EnableConfigMapRollout: true,
}
}

0 comments on commit 3692224

Please sign in to comment.