zhangshenghang opened a new pull request, #11257:
URL: https://github.com/apache/seatunnel/pull/11257

   ### Purpose
   
   Fixes #11020.
   
   The existing `SerialVersionUIDCheckerTest` only checked the generic state 
types referenced by `SeaTunnelSource` and `SeaTunnelSink` implementations. It 
missed other Java-serialized classes that are part of job graph or 
restore-related paths, such as CDC source config factories/config objects and 
engine job graph DTOs.
   
   ### Changes
   
   - Extend `SerialVersionUIDCheckerTest` to check:
     - CDC connector config/config-factory classes under `connector-cdc`
     - engine job graph classes under `engine/core/job` and `engine/common/job`
     - existing source/sink generic state types
   - Require `serialVersionUID` to be declared on the concrete class itself 
instead of accepting an inherited field.
   - Add explicit `serialVersionUID` fields to the currently uncovered CDC 
config/factory classes and engine job graph DTOs.
   - Preserve the existing MySQL CDC factory UID baseline by declaring 
`-6578851046816898665L`.
   
   ### Verification
   
   - `./mvnw spotless:apply`
   - `./mvnw -pl seatunnel-ci-tools -Dtest=SerialVersionUIDCheckerTest test`
   - `./mvnw -q -DskipTests verify`
   - `./mvnw -pl seatunnel-connectors-v2/connector-cdc/connector-cdc-mysql 
-Dtest=MySqlSourceConfigFactorySerializationTest test`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to