Skip to content

Commit 08d6b81

Browse files
authored
[cdc-connector][sqlserver] Fix SqlServerTableSource params order error (#2847)
1 parent 43bd5c0 commit 08d6b81

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

flink-cdc-connect/flink-cdc-source-connectors/flink-connector-sqlserver-cdc/src/main/java/com/ververica/cdc/connectors/sqlserver/table/SqlServerTableFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ public DynamicTableSource createDynamicTableSource(Context context) {
168168
splitMetaGroupSize,
169169
fetchSize,
170170
connectTimeout,
171-
connectionPoolSize,
172171
connectMaxRetries,
172+
connectionPoolSize,
173173
distributionFactorUpper,
174174
distributionFactorLower,
175175
chunkKeyColumn,

flink-cdc-connect/flink-cdc-source-connectors/flink-connector-sqlserver-cdc/src/main/java/com/ververica/cdc/connectors/sqlserver/table/SqlServerTableSource.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public SqlServerTableSource(
130130
this.splitMetaGroupSize = splitMetaGroupSize;
131131
this.fetchSize = fetchSize;
132132
this.connectTimeout = connectTimeout;
133-
this.connectionPoolSize = connectionPoolSize;
134133
this.connectMaxRetries = connectMaxRetries;
134+
this.connectionPoolSize = connectionPoolSize;
135135
this.distributionFactorUpper = distributionFactorUpper;
136136
this.distributionFactorLower = distributionFactorLower;
137137
this.chunkKeyColumn = chunkKeyColumn;
@@ -178,8 +178,8 @@ public ScanRuntimeProvider getScanRuntimeProvider(ScanContext scanContext) {
178178
.splitMetaGroupSize(splitMetaGroupSize)
179179
.fetchSize(fetchSize)
180180
.connectTimeout(connectTimeout)
181-
.connectionPoolSize(connectionPoolSize)
182181
.connectMaxRetries(connectMaxRetries)
182+
.connectionPoolSize(connectionPoolSize)
183183
.distributionFactorUpper(distributionFactorUpper)
184184
.distributionFactorLower(distributionFactorLower)
185185
.chunkKeyColumn(chunkKeyColumn)
@@ -239,8 +239,8 @@ public DynamicTableSource copy() {
239239
splitMetaGroupSize,
240240
fetchSize,
241241
connectTimeout,
242-
connectionPoolSize,
243242
connectMaxRetries,
243+
connectionPoolSize,
244244
distributionFactorUpper,
245245
distributionFactorLower,
246246
chunkKeyColumn,

flink-cdc-connect/flink-cdc-source-connectors/flink-connector-sqlserver-cdc/src/test/java/com/ververica/cdc/connectors/sqlserver/table/SqlServerTableFactoryTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ public void testCommonProperties() {
103103
SourceOptions.CHUNK_META_GROUP_SIZE.defaultValue(),
104104
SourceOptions.SCAN_SNAPSHOT_FETCH_SIZE.defaultValue(),
105105
JdbcSourceOptions.CONNECT_TIMEOUT.defaultValue(),
106-
JdbcSourceOptions.CONNECTION_POOL_SIZE.defaultValue(),
107106
JdbcSourceOptions.CONNECT_MAX_RETRIES.defaultValue(),
107+
JdbcSourceOptions.CONNECTION_POOL_SIZE.defaultValue(),
108108
JdbcSourceOptions.SPLIT_KEY_EVEN_DISTRIBUTION_FACTOR_UPPER_BOUND
109109
.defaultValue(),
110110
JdbcSourceOptions.SPLIT_KEY_EVEN_DISTRIBUTION_FACTOR_LOWER_BOUND
@@ -148,8 +148,8 @@ public void testEnableParallelReadSource() {
148148
3000,
149149
100,
150150
Duration.ofSeconds(45),
151-
JdbcSourceOptions.CONNECTION_POOL_SIZE.defaultValue(),
152151
JdbcSourceOptions.CONNECT_MAX_RETRIES.defaultValue(),
152+
JdbcSourceOptions.CONNECTION_POOL_SIZE.defaultValue(),
153153
40.5d,
154154
0.01d,
155155
"testCol",
@@ -187,8 +187,8 @@ public void testOptionalProperties() {
187187
SourceOptions.CHUNK_META_GROUP_SIZE.defaultValue(),
188188
SourceOptions.SCAN_SNAPSHOT_FETCH_SIZE.defaultValue(),
189189
JdbcSourceOptions.CONNECT_TIMEOUT.defaultValue(),
190-
JdbcSourceOptions.CONNECTION_POOL_SIZE.defaultValue(),
191190
JdbcSourceOptions.CONNECT_MAX_RETRIES.defaultValue(),
191+
JdbcSourceOptions.CONNECTION_POOL_SIZE.defaultValue(),
192192
JdbcSourceOptions.SPLIT_KEY_EVEN_DISTRIBUTION_FACTOR_UPPER_BOUND
193193
.defaultValue(),
194194
JdbcSourceOptions.SPLIT_KEY_EVEN_DISTRIBUTION_FACTOR_LOWER_BOUND

0 commit comments

Comments
 (0)