This repository was archived by the owner on Aug 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +65
-127
lines changed
ignore_generate_column/conf Expand file tree Collapse file tree 7 files changed +65
-127
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,14 @@ conf=$1
99check_time=${2-10}
1010
1111LOG=$DUMPLING_OUTPUT_DIR /sync_diff_inspector.log
12+ OUTPUT_DIR=/tmp/dumpling_test_result/output
13+
14+ mkdir -p OUTPUT_DIR=/tmp/dumpling_test_result
1215
1316i=0
1417while [ $i -lt $check_time ]
1518do
19+ rm -rf $OUTPUT_DIR
1620 bin/sync_diff_inspector --config=$conf >> $LOG 2>&1
1721 ret=$?
1822 if [ " $ret " == 0 ]; then
Original file line number Diff line number Diff line change 11# diff Configuration.
22
3- log-level = " info"
4-
5- chunk-size = 1000
6-
73check-thread-count = 4
84
9- sample-percent = 100
5+ export-fix-sql = true
106
11- use-checksum = true
7+ check-struct-only = false
128
13- fix-sql-file = " fix.sql"
9+ [task ]
10+ output-dir = " /tmp/dumpling_test_result/output"
1411
15- # tables need to check.
16- [[check-tables ]]
17- schema = " all_generate_column"
18- tables = [" ~t.*" ]
12+ source-instances = [" mysql1" ]
1913
20- [[table-config ]]
21- schema = " all_generate_column"
22- table = " t"
14+ target-instance = " tidb0"
2315
24- [[table-config .source-tables ]]
25- instance-id = " source-1"
26- schema = " all_generate_column"
27- table = " t"
16+ target-check-tables = [" all_generate_column.t" ]
2817
29- [[source-db ]]
18+ [data-sources ]
19+ [data-sources .mysql1 ]
3020host = " 127.0.0.1"
3121port = 3306
3222user = " root"
3323password = " "
34- instance-id = " source-1"
3524
36- [target-db ]
25+ [data-sources . tidb0 ]
3726host = " 127.0.0.1"
3827port = 4000
3928user = " root"
Original file line number Diff line number Diff line change 11# diff Configuration.
22
3- log-level = " info"
4-
5- chunk-size = 1000
6-
73check-thread-count = 4
84
9- sample-percent = 100
5+ export-fix-sql = true
106
11- use-checksum = true
7+ check-struct-only = false
128
13- fix-sql-file = " fix.sql"
9+ [task ]
10+ output-dir = " /tmp/dumpling_test_result/output"
1411
15- # tables need to check.
16- [[check-tables ]]
17- schema = " e2e"
18- tables = [" ~t.*" ]
12+ source-instances = [" mysql1" ]
1913
20- [[table-config ]]
21- schema = " e2e"
22- table = " t"
14+ target-instance = " tidb0"
2315
24- [[table-config .source-tables ]]
25- instance-id = " source-1"
26- schema = " e2e"
27- table = " t"
16+ target-check-tables = [" e2e.t" ]
2817
29- [[source-db ]]
18+ [data-sources ]
19+ [data-sources .mysql1 ]
3020host = " 127.0.0.1"
3121port = 3306
3222user = " root"
3323password = " "
34- instance-id = " source-1"
3524
36- [target-db ]
25+ [data-sources . tidb0 ]
3726host = " 127.0.0.1"
3827port = 4000
3928user = " root"
Original file line number Diff line number Diff line change 11# diff Configuration.
22
3- log-level = " info"
4-
5- chunk-size = 1000
6-
73check-thread-count = 4
84
9- sample-percent = 100
10-
11- use-checksum = true
12-
13- fix-sql-file = " fix.sql"
5+ export-fix-sql = true
146
15- # tables need to check.
16- [[check-tables ]]
17- schema = " e2e_csv"
18- tables = [" escape" , " t" ]
7+ check-struct-only = false
198
20- [[table-config ]]
21- schema = " e2e_csv"
22- table = " t"
9+ [task ]
10+ output-dir = " /tmp/dumpling_test_result/output"
2311
24- [[table-config .source-tables ]]
25- instance-id = " source-1"
26- schema = " e2e_csv"
27- table = " t"
12+ source-instances = [" mysql1" ]
2813
29- [[table-config ]]
30- schema = " e2e_csv"
31- table = " escape"
14+ target-instance = " tidb0"
3215
33- [[table-config .source-tables ]]
34- instance-id = " source-1"
35- schema = " e2e_csv"
36- table = " escape"
16+ target-check-tables = [" e2e_csv.escape" , " e2e_csv.t" ]
3717
38- [[source-db ]]
18+ [data-sources ]
19+ [data-sources .mysql1 ]
3920host = " 127.0.0.1"
4021port = 3306
4122user = " root"
4223password = " "
43- instance-id = " source-1"
4424
45- [target-db ]
25+ [data-sources . tidb0 ]
4626host = " 127.0.0.1"
4727port = 4000
4828user = " root"
Original file line number Diff line number Diff line change 11# diff Configuration.
22
3- log-level = " info"
4-
5- chunk-size = 1000
6-
73check-thread-count = 4
84
9- sample-percent = 100
5+ export-fix-sql = true
106
11- use-checksum = true
7+ check-struct-only = false
128
13- fix-sql-file = " fix.sql"
9+ [task ]
10+ output-dir = " /tmp/dumpling_test_result/output"
1411
15- # tables need to check.
16- [[check-tables ]]
17- schema = " ignore_generate"
18- tables = [" ~t.*" ]
12+ source-instances = [" mysql1" ]
1913
20- [[table-config ]]
21- schema = " ignore_generate"
22- table = " t"
14+ target-instance = " tidb0"
2315
24- [[table-config .source-tables ]]
25- instance-id = " source-1"
26- schema = " ignore_generate"
27- table = " t"
16+ target-check-tables = [" ignore_generate.t" ]
2817
29- [[source-db ]]
18+ [data-sources ]
19+ [data-sources .mysql1 ]
3020host = " 127.0.0.1"
3121port = 3306
3222user = " root"
3323password = " "
34- instance-id = " source-1"
3524
36- [target-db ]
25+ [data-sources . tidb0 ]
3726host = " 127.0.0.1"
3827port = 4000
3928user = " root"
Original file line number Diff line number Diff line change 11# diff Configuration.
22
3- log-level = " info"
4-
5- chunk-size = 1000
6-
73check-thread-count = 4
84
9- sample-percent = 100
5+ export-fix-sql = true
106
11- use-checksum = true
7+ check-struct-only = false
128
13- fix-sql-file = " fix.sql"
9+ [task ]
10+ output-dir = " /tmp/dumpling_test_result/output"
1411
15- # tables need to check.
16- [[check-tables ]]
17- schema = " rows"
18- tables = [" ~t.*" ]
12+ source-instances = [" mysql1" ]
1913
20- [[table-config ]]
21- schema = " rows"
22- table = " t"
14+ target-instance = " tidb0"
2315
24- [[table-config .source-tables ]]
25- instance-id = " source-1"
26- schema = " rows"
27- table = " t"
16+ target-check-tables = [" rows.t" ]
2817
29- [[source-db ]]
18+ [data-sources ]
19+ [data-sources .mysql1 ]
3020host = " 127.0.0.1"
3121port = 3306
3222user = " root"
3323password = " "
34- instance-id = " source-1"
3524
36- [target-db ]
25+ [data-sources . tidb0 ]
3726host = " 127.0.0.1"
3827port = 4000
3928user = " root"
Original file line number Diff line number Diff line change 11# diff Configuration.
22
3- log-level = " info "
3+ check-thread-count = 4
44
5- chunk-size = 1000
5+ export-fix-sql = true
66
7- check-thread-count = 4
7+ check-struct-only = false
88
9- sample-percent = 100
9+ [task ]
10+ output-dir = " /tmp/dumpling_test_result/output"
1011
11- use-checksum = true
12+ source-instances = [ " mysql1 " ]
1213
13- fix-sql-file = " fix.sql "
14+ target-instance = " tidb0 "
1415
15- # tables need to check.
16- [[check-tables ]]
17- schema = " rei"
18- tables = [" ~t.*" ]
16+ target-check-tables = [" rei.t*" ]
1917
20- [[source-db ]]
18+ [data-sources ]
19+ [data-sources .mysql1 ]
2120host = " 127.0.0.1"
2221port = 3306
2322user = " root"
2423password = " "
25- instance-id = " source-1"
2624
27- [target-db ]
25+ [data-sources . tidb0 ]
2826host = " 127.0.0.1"
2927port = 4000
3028user = " root"
You can’t perform that action at this time.
0 commit comments