Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests(ticdc): set up the sync diff output directory correctly (#3725) #3745

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions tests/integration_tests/_utils/check_sync_diff
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ binary=sync_diff_inspector

PWD=$(pwd)
LOG=$workdir/sync_diff_inspector.log
OUTPUT_DIR=/tmp/ticdc_dm_test/output/

mkdir -p /tmp/ticdc_dm_test

cd $workdir
i=0
while [ $i -lt $check_time ]; do
rm -rf $OUTPUT_DIR
rm -rf $workdir/sync_diff/
$binary --config=$conf >>$LOG 2>&1
ret=$?
if [ "$ret" == 0 ]; then
Expand All @@ -38,7 +37,7 @@ if [ $i -ge $check_time ]; then
# show \n and other blanks
cat $LOG
printf "\n"
cat $OUTPUT_DIR/sync_diff.log
cat $workdir/sync_diff/output/sync_diff.log
printf "\n"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/autorandom/conf/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/autorandom/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/batch_add_table/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/capture_session_done_during_task/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/capture_suicide_while_balance_table/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/changefeed_auto_stop/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/changefeed_error/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/changefeed_finish/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/changefeed_pause_resume/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/changefeed_reconstruct/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/clustered_index/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/common_1/conf/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/common_1/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/cyclic_ab/conf/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/cyclic_ab/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/cyclic_abc/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/cyclic_abc/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/ddl_reentrant/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/ddl_sequence/conf/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/ddl_sequence/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/drop_many_tables/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/gc_safepoint/conf/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/gc_safepoint/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/generate_column/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/kafka_message/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/kafka_sink_error_resume/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/kill_owner_with_ddl/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/kv_client_stream_reconnect/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/many_pk_or_uk/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/many_pk_or_uk/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/move_table/conf/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/move_table/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/multi_capture/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/multi_source/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/multi_source/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/new_ci_collation_with_old_value/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/new_ci_collation_without_old_value/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/owner_remove_table_error/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/partition_table/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/processor_err_chan/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/processor_panic/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/processor_panic/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/processor_resolved_ts_fallback/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/processor_stop_delay/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/region_merge/conf/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/region_merge/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/resolve_lock/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/resolve_lock/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/row_format/conf/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/row_format/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/sink_hang/conf/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/sink_hang/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/sink_retry/conf/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/sink_retry/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/split_region/conf/diff_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export-fix-sql = true
check-struct-only = false

[task]
output-dir = "/tmp/ticdc_dm_test/output"
output-dir = "/tmp/tidb_cdc_test/split_region/sync_diff/output"

source-instances = ["mysql1"]

Expand Down
Loading