Skip to content

Commit

Permalink
Fix drainer misconfiguration (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
weekface authored Sep 24, 2019
1 parent 761daab commit 82d00f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion charts/tidb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,9 @@ binlog:
# just follow the format in the file and configure in the 'config' section
# as below if you want to customize any configuration.
# config: |
# worker-count = 16
# detect-interval = 10
# [syncer]
# worker-count = 16
# disable-dispatch = false
# ignore-schemas = "INFORMATION_SCHEMA,PERFORMANCE_SCHEMA,mysql"
# safe-mode = false
Expand Down
10 changes: 6 additions & 4 deletions tests/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -2385,10 +2385,12 @@ func (oa *operatorActions) DeployIncrementalBackup(from *TidbClusterConfig, to *
sets["binlog.drainer.ignoreSchemas"] = ""
} else {
from.drainerConfig = []string{
"worker-count = 16",
"detect-interval = 10",
"disable-dispatch = false",
`ignore-schemas = ""`,
`detect-interval = 10`,
`compressor = ""`,
`[syncer]`,
`worker-count = 16`,
`disable-dispatch = false`,
`ignore-schemas = "INFORMATION_SCHEMA,PERFORMANCE_SCHEMA,mysql"`,
`safe-mode = false`,
`txn-batch = 20`,
`db-type = "mysql"`,
Expand Down

0 comments on commit 82d00f4

Please sign in to comment.