-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drainer: skip resource group ddl (#1222)
close #1221
- v8.5.0-alpha
- v8.4.0-alpha
- v8.3.0
- v8.3.0-alpha
- v8.2.0
- v8.2.0-alpha
- v8.1.2
- v8.1.1
- v8.1.0
- v8.1.0-alpha
- v8.0.0
- v8.0.0-alpha
- v7.6.0
- v7.6.0-alpha
- v7.5.5
- v7.5.4
- v7.5.3
- v7.5.2
- v7.5.1
- v7.5.0
- v7.5.0-alpha
- v7.4.0
- v7.3.0
- v7.3.0-alpha
- v7.2.0
- v7.2.0-alpha
- v7.1.6
- v7.1.5
- v7.1.4
- v7.1.3
- v7.1.2
- v7.1.1
- v7.1.0
- v7.1.0-rc.0
1 parent
94cf5b7
commit 1807bf4
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
data-dir = '/tmp/tidb_binlog_test/data.drainer' | ||
|
||
[syncer] | ||
txn-batch = 1 | ||
worker-count = 1 | ||
safe-mode = false | ||
db-type = 'mysql' | ||
replicate-do-db = ['resource_control_test'] | ||
|
||
[syncer.to] | ||
host = '127.0.0.1' | ||
user = 'root' | ||
password = '' | ||
port = 3306 | ||
|
||
[syncer.to.checkpoint] | ||
schema = "resource_control_checkpoint" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")" | ||
|
||
run_drainer --compressor gzip & | ||
|
||
sleep 3 | ||
|
||
run_sql 'CREATE DATABASE resource_control_test;' | ||
run_sql 'CREATE RESOURCE GROUP rg1 RU_PER_SEC=10000;' | ||
run_sql 'CREATE RESOURCE GROUP rg2 RU_PER_SEC=5000;' | ||
run_sql 'ALTER RESOURCE GROUP rg1 RU_PER_SEC=10000, BURSTABLE;' | ||
run_sql 'DROP RESOURCE GROUP rg2;' | ||
|
||
sleep 3 | ||
|
||
run_sql 'DROP DATABASE resource_control_test;' | ||
|
||
killall drainer |