Skip to content

Commit

Permalink
fix big txn
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesCheung96 committed Jun 28, 2022
1 parent dacf4c4 commit f0a3057
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions pkg/cmd/util/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ func TestStrictDecodeInvalidFile(t *testing.T) {

configPath := filepath.Join(tmpDir, "ticdc.toml")
configContent := fmt.Sprintf(`
unknown = "128.0.0.1:1234"
data-dir = "%+v"
[log.unkown]
max-size = 200
max-days = 1
max-backups = 1
`, dataDir)
unknown = "128.0.0.1:1234"
data-dir = "%+v"
[log.unkown]
max-size = 200
max-days = 1
max-backups = 1
`, dataDir)
err := os.WriteFile(configPath, []byte(configContent), 0o644)
require.Nil(t, err)

Expand Down Expand Up @@ -191,7 +191,8 @@ func TestAndWriteExampleReplicaTOML(t *testing.T) {
{Matcher: []string{"test1.*", "test2.*"}, Columns: []string{"column1", "column2"}},
{Matcher: []string{"test3.*", "test4.*"}, Columns: []string{"!a", "column3"}},
},
Protocol: "open-protocol",
Protocol: "open-protocol",
TxnAtomicity: config.TableTxnAtomicity,
}, cfg.Sink)
}

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/big_txn/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function run() {
TOPIC_NAME="ticdc-big-txn-test-$RANDOM"
case $SINK_TYPE in
kafka) SINK_URI="kafka://127.0.0.1:9092/$TOPIC_NAME?protocol=open-protocol&partition-num=4&kafka-version=${KAFKA_VERSION}&max-message-bytes=10485760" ;;
*) SINK_URI="mysql://normal:[email protected]:3306?split-txn=true" ;;
*) SINK_URI="mysql://normal:[email protected]:3306?transaction-atomicity=none" ;;
esac
run_cdc_cli changefeed create --start-ts=$start_ts --sink-uri="$SINK_URI"

Expand Down

0 comments on commit f0a3057

Please sign in to comment.