File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
mysql-delta-plugins/src/main/java/io/cdap/delta/mysql
sqlserver-delta-plugins/src/main/java/io/cdap/delta/sqlserver Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 4949import java .time .temporal .Temporal ;
5050import java .util .Map ;
5151import java .util .Set ;
52+ import java .util .UUID ;
5253import java .util .concurrent .ExecutorService ;
5354import java .util .concurrent .Executors ;
5455import java .util .concurrent .TimeUnit ;
@@ -110,7 +111,7 @@ public void start(Offset offset) {
110111 .with ("event" , state .getOrDefault (MySqlConstantOffsetBackingStore .EVENT , "" ))
111112 .with ("gtids" , state .getOrDefault (MySqlConstantOffsetBackingStore .GTID_SET , "" ))
112113 /* begin connector properties */
113- .with ("name" , "delta" )
114+ .with ("name" , "delta" + UUID . randomUUID (). toString (). replace ( "-" , "" ) )
114115 .with ("database.hostname" , config .getHost ())
115116 .with ("database.port" , config .getPort ())
116117 .with ("database.user" , config .getUser ())
Original file line number Diff line number Diff line change 4343import java .util .HashSet ;
4444import java .util .Map ;
4545import java .util .Set ;
46+ import java .util .UUID ;
4647import java .util .concurrent .ExecutorService ;
4748import java .util .concurrent .Executors ;
4849import java .util .concurrent .TimeUnit ;
@@ -116,7 +117,7 @@ public void start(Offset offset) {
116117 .with ("snapshot" , state .getOrDefault (SourceInfo .SNAPSHOT_KEY , "" ))
117118 .with ("snapshot_completed" , isSnapshotCompleted )
118119 /* begin connector properties */
119- .with ("name" , "delta" )
120+ .with ("name" , "delta" + UUID . randomUUID (). toString (). replace ( "-" , "" ) )
120121 .with ("database.hostname" , config .getHost ())
121122 .with ("database.port" , config .getPort ())
122123 .with ("database.user" , config .getUser ())
You can’t perform that action at this time.
0 commit comments