Skip to content

Commit 2742ce7

Browse files
xxntti3ntien-nguyen6-cake
authored andcommitted
Merge branch 'master' into universal-chunk-column-dev
2 parents c76cf80 + ab70a29 commit 2742ce7

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed

flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/main/java/org/apache/flink/cdc/connectors/mysql/source/assigners/MySqlSnapshotSplitAssigner.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -271,18 +271,10 @@ private void captureNewlyAddedTables() {
271271

272272
// case 2: there are new tables to add
273273
if (!newlyAddedTables.isEmpty()) {
274-
// if job is still in snapshot reading phase, directly add all newly added
275-
// tables
276274
LOG.info("Found newly added tables, start capture newly added tables process");
277275

278-
// add new tables
279276
remainingTables.addAll(newlyAddedTables);
280-
if (AssignerStatus.isAssigningFinished(assignerStatus)) {
281-
// start the newly added tables process under binlog reading phase
282-
LOG.info(
283-
"Found newly added tables, start capture newly added tables process under binlog reading phase");
284-
this.startAssignNewlyAddedTables();
285-
}
277+
this.startAssignNewlyAddedTables();
286278
}
287279
} catch (Exception e) {
288280
throw new FlinkRuntimeException(

flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/org/apache/flink/cdc/connectors/postgres/source/config/PostgresSourceConfig.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,15 @@ public Map<ObjectPath, String> getChunkKeyColumns() {
135135
public boolean includePartitionedTables() {
136136
return includePartitionedTables;
137137
}
138+
/**
139+
* Returns {@code includePartitionedTables} value.
140+
*
141+
* @return include partitioned table
142+
*/
143+
public boolean includePartitionedTables() {
144+
return includePartitionedTables;
145+
}
146+
138147
/**
139148
* Returns the slot name for backfill task.
140149
*

flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/org/apache/flink/cdc/connectors/postgres/source/config/PostgresSourceConfigFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public class PostgresSourceConfigFactory extends JdbcSourceConfigFactory {
5757

5858
private Map<ObjectPath, String> chunkKeyColumns = new HashMap<>();
5959

60+
6061
private boolean includePartitionedTables;
6162

6263
/** Creates a new {@link PostgresSourceConfig} for the given subtask {@code subtaskId}. */

pom.xml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ limitations under the License.
5959
</scm>
6060

6161
<properties>
62-
<revision>3.5-SNAPSHOT</revision>
62+
<revision>3.6-SNAPSHOT</revision>
6363
<scala.binary.version>2.12</scala.binary.version>
6464
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6565
<!-- Enforce single fork execution due to heavy mini cluster use in the tests -->
@@ -421,6 +421,8 @@ limitations under the License.
421421
</licenseFamilies>
422422
<excludes>
423423
<!-- Additional files like .gitignore etc.-->
424+
<!-- Release files -->
425+
<exclude>**/release/**</exclude>
424426
<exclude>**/README.md</exclude>
425427
<exclude>**/.*/**</exclude>
426428
<!-- Generated content -->
@@ -676,6 +678,16 @@ limitations under the License.
676678
<target>${maven.compiler.target}</target>
677679
</configuration>
678680
</plugin>
681+
682+
<!-- Allow modification of pom.xml properties using Maven commands. -->
683+
<plugin>
684+
<groupId>org.codehaus.mojo</groupId>
685+
<artifactId>versions-maven-plugin</artifactId>
686+
<version>2.5</version>
687+
<configuration>
688+
<generateBackupPoms>false</generateBackupPoms>
689+
</configuration>
690+
</plugin>
679691
</plugins>
680692
</build>
681693

0 commit comments

Comments
 (0)