forked from pingcap/tiflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sink(ticdc): use pd clock in storage sink (pingcap#10351)
close pingcap#10352, ref pingcap#10374
- Loading branch information
1 parent
a3a7939
commit 89b4b6a
Showing
19 changed files
with
123 additions
and
55 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
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
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
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
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 |
---|---|---|
|
@@ -101,26 +101,26 @@ func TestValidateSink(t *testing.T) { | |
|
||
// test sink uri error | ||
sinkURI := "mysql://root:[email protected]:3306/" | ||
err := Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig) | ||
err := Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig, nil) | ||
require.NotNil(t, err) | ||
require.Contains(t, err.Error(), "fail to open MySQL connection") | ||
|
||
// test sink uri right | ||
sinkURI = "blackhole://" | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig) | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig, nil) | ||
require.Nil(t, err) | ||
|
||
// test bdr mode error | ||
replicateConfig.BDRMode = util.AddressOf(true) | ||
sinkURI = "blackhole://" | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig) | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig, nil) | ||
require.NotNil(t, err) | ||
require.Contains(t, err.Error(), "sink uri scheme is not supported in BDR mode") | ||
|
||
// test sink-scheme/syncpoint error | ||
replicateConfig.EnableSyncPoint = util.AddressOf(true) | ||
sinkURI = "kafka://" | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig) | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig, nil) | ||
require.NotNil(t, err) | ||
require.Contains( | ||
t, err.Error(), | ||
|
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
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
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
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
Oops, something went wrong.