JNSimba opened a new pull request, #71423: URL: https://github.com/apache/doris/pull/71423
### Background CDC Client is the Java companion service that reads MySQL and PostgreSQL changes for streaming ingestion. It exposes HTTP APIs to BE and packages its Web dependencies independently of FE. ### What problem does this PR solve? Issue Number: None Related PR: #68862 (aligns the FE Web dependencies) PR Type: Release/Dependency Problem Summary: CDC Client still uses older Spring and Jetty versions than FE. Align Spring Boot, Spring Framework and Jetty with FE while preserving existing HTTP responses and CDC reader protocols. Most added code consists of HTTP compatibility tests for the major version upgrade. ### Details - **Versions:** Spring Boot 3.5.7 -> 4.1.1; Spring Framework 6.2.12 -> 7.0.9; Jetty 12.0.29 -> 12.1.14. Supporting dependencies use Jackson 2.21.5 and SLF4J 2.0.18, and the Boot packaging plugin moves from 2.0.3.RELEASE to 4.1.1. Versions are resolved through Maven; Kafka, Flink and Debezium retain their existing versions. - **Upstream changes:** Boot 4 uses Framework 7 and Servlet 6.1 and relocates `ServletComponentScan`. Keep Jackson 2 through Boot's compatibility module, retain the Log4j2 logging provider, and remove unused legacy Jetty server components from embedded connectors. See the [Boot 4 migration guide](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-4.0-Migration-Guide). - **Compatibility:** Checked on Linux x86_64 with Java 17.0.2 and Maven 3.9.12. Tests cover JSON success/error envelopes, textual job IDs, streaming responses and the health endpoint used by BE. No persisted offset format or Java baseline change. - **Rollback:** Revert this PR and rebuild CDC Client. No metadata migration is required. ### Testing All runs below were performed on a Linux development machine. - 282 unit tests passed on `50660e4c8`, including four embedded HTTP tests in `CdcClientHttpTest`. - Nine MySQL/PostgreSQL snapshot, streaming, DML and resume integration tests passed on `e80f7553b`. The subsequent POM simplification preserves all 219 resolved dependencies and changes no Java code or test inputs; these integration tests were not rerun for that cleanup. - The rebuilt executable JAR started successfully: `/actuator/health` returned HTTP 200 and `UP`, and the production task-status API returned the expected success response. All 30 packaged Jetty modules resolve to 12.1.14. - Full FE/BE cluster regression and performance benchmarks were not run. ### Notes for Reviewers Use the Jetty and Jackson BOMs rather than the full Boot dependency BOM to avoid changing unrelated connector dependencies. The connector exclusions apply to both MySQL and PostgreSQL; embedded Debezium does not start Kafka Connect's REST server. ### Release note Align CDC Client's Spring and Jetty versions with FE while preserving existing HTTP and CDC protocols. ### Check List (For Author) - Behavior changed: No - Does this need documentation: No - Pre-submission status: Ready ### AI Disclosure - Tool: Codex (GPT-6 family) - Generated: dependency changes, compatibility tests and this description - Human review: not stated -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
