Repository navigation
Conversation
…fic names Rename flink-cdc-flink1-compat to flink-cdc-flink/flink-cdc-flink-1.20 and flink-cdc-flink2-compat to flink-cdc-flink/flink-cdc-flink-2.2, nested under a new flink-cdc-flink aggregate, so the compatibility layer is named after the Flink version it targets and future lines can grow as sibling modules - the layout used by Paimon and Fluss. Pure rename: class content and build behavior are unchanged. References updated accordingly: root pom modules, the compat dependency declarations, neutralization profiles and test-classpath copy steps in cli, common, composer, runtime, dist, connect and source-connectors, the shade include wildcard in the SQL connector fat jar modules, the javadoc exclusion list in docs.sh (switched to relative paths, since bare artifactIds only match root-level modules), and AGENTS.md. Verified on JDK 11 with full clean installs of both Flink generations (default and -Pflink2; RAT skipped locally because of untracked draft files - all touched headers are repo-standard). Every fat jar was checked to still shade the complete compat class set: dist and SQL connector fat jars on both lines contain all 21 / 38 classes respectively.
yuxiqian
reviewed
Nov 24, 2026
| </parent> | ||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <artifactId>flink-cdc-flink</artifactId> |
Member
There was a problem hiding this comment.
I personally think the naming of flink-cdc-flink is a little confusing. Shall we use the original flink-cdc-compat as the parent module name?
Contributor
Author
There was a problem hiding this comment.
I agree, and fixed.
…c-compat Per review feedback on apache#4632: the aggregate name flink-cdc-flink reads confusingly next to its children (flink-cdc-flink-1.20 / -2.2). Use the original flink-cdc-compat name for the aggregate directory and artifactId; the child module names are unchanged. Pure rename again: both generations build green, the fat jars are class-for-class identical to the build before this change, and the javadoc exclusion paths in docs.sh follow the new directory.
Contributor
Author
|
@yuxiqian Hi, the CI error doesn't seem to be related to this PR. |
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of this pull request?
Rename the two Flink compatibility modules after the Flink version they target, and nest them under a
flink-cdc-compataggregate:flink-cdc-flink1-compat->flink-cdc-compat/flink-cdc-flink-1.20flink-cdc-flink2-compat->flink-cdc-compat/flink-cdc-flink-2.2With the compatibility layer named per version, a future Flink line can be added as a sibling module instead of a generation-wide switch - the layout Paimon (
paimon-flink-1.20, ...) and Fluss (fluss-flink-1.20, ...) already use.This is the first step of the multi-version compatibility refactor tracked in FLINK-41452. The original attempt (#4623) bundled the whole refactor into one PR and was found too large to review, so it is being reworked as a series of small sub-task PRs; this PR supersedes #4623 and contains only the rename (sub-task: FLINK-41641). The remaining steps (root-pom consolidation, compat-layer split, per-version dist and connector artifacts, docs) follow as separate PRs.
Brief change log
Pure rename - zero class-content change. 75 files changed vs master (57 pure renames, 17 files with a few lines each, 1 new aggregate pom), in two commits: the rename itself, plus a follow-up that names the aggregate
flink-cdc-compatper review feedback.flink-cdc-compataggregate (packaging pom, two modules); their artifactIds and parent declarations follow.<modules>; the compat dependency declarations, neutralization profiles and test-classpath copy steps in cli / common / composer / runtime / dist / connect / source-connectors; the shade include wildcard in the 7 SQL connector fat jar poms (flink-cdc-flink*-compat->flink-cdc-flink-*); the javadoc exclusion list indocs.sh(switched to relative paths - bare artifactIds only match root-level modules);AGENTS.md(repository guidance kept in sync).Verifying this change
mvn clean install -DskipTestson JDK 11 for both generations (default and-Pflink2), with the repository gates (spotless / checkstyle) green.Documentation
AGENTS.md, the repository guidance file, is updated to the new module names.Was generative AI tooling used to co-author this PR?
Generated-by: CodeBuddy (GLM-5.3)