peiyu created FLINK-41651:
-----------------------------

             Summary: Split the compat layer into generation-common and 
line-pinned thin modules
                 Key: FLINK-41651
                 URL: https://issues.apache.org/jira/browse/FLINK-41651
             Project: Flink
          Issue Type: Sub-task
          Components: Flink CDC
    Affects Versions: cdc-3.7.0
            Reporter: peiyu


h2. Purpose

Adopt the Paimon layering: generation-common modules hold the compatibility 
code, and one thin module per supported minor pins its Flink line. Supporting a 
future Flink version then means one thin module plus root-pom wiring - the 
common layers and all connectors stay untouched. (Paimon's newest 
{{paimon-flink-1.20}} / {{-2.2}} modules are empty shells for exactly this 
reason; Fluss supports 2.3 with a single adapter class.)

h2. Changes

* All classes move from {{flink-cdc-compat/flink-cdc-flink-1.20}} to a new 
{{flink-cdc-compat/flink-cdc-flink1-common}} (pure move, zero class-content 
change); likewise the 2.2 side -> {{flink-cdc-flink2-common}}. 
{{flink.compat.artifactId}} then points at the common modules.
* New thin modules {{flink-cdc-flink-1.20}} / {{flink-cdc-flink-2.2}}: a pom 
pinning {{flink.version}} to new root properties {{flink.1.20.version}} / 
{{flink.2.2.version}} (so a generation-baseline bump cannot drag an older line 
along) and a compile dependency on the matching common module. Skeletons only - 
no classes, no tests.

h2. Non-goals

No fat-jar rewiring yet: the dist and SQL connector modules start depending on 
the thin modules in the per-version artifact sub-tasks, which is what makes 
"add a version" zero-touch. No override or priority probe tests - the same-FQCN 
override (Fluss's mechanism) is only exercised when a real version difference 
exists.

h2. Verification

Dual-generation full builds; fat jars still shade the complete compat class set 
(the classes move between modules, the FQCNs do not change); jar-level 
comparison shows class content identical.

h2. Dependencies

After the rename sub-task.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to