hello-stephen commented on code in PR #71423:
URL: https://github.com/apache/doris/pull/71423#discussion_r4797306664


##########
fs_brokers/cdc_client/pom.xml:
##########
@@ -61,10 +61,12 @@ under the License.
         </mailingList>
     </mailingLists>
     <properties>
-        <spring.version>3.5.7</spring.version>
+        <spring.version>4.1.1</spring.version>
+        <jetty.version>12.1.14</jetty.version>
+        <jackson.version>2.21.5</jackson.version>
+        <slf4j.version>2.0.18</slf4j.version>

Review Comment:
   [P2] Preserve CDC client log rotation after switching the SLF4J binding
   
   After removing the SLF4J 1.7 binding, the client still ships only a Log4j 1 
configuration. The new backend does not load that file by default, so the BE's 
`-Dlog.path` no longer configures the rolling `cdc-client.log`. Normal output 
goes to the append-only `cdc-client.out`, losing the 50 MB rotation threshold 
and ten backups. Ship the selected backend's native rolling-file configuration 
and keep honoring `log.path`. [Apache Log4j migration 
guide](https://logging.apache.org/log4j/2.x/migrate-from-log4j1.html#log4j-1-backend-migration).



##########
fs_brokers/cdc_client/pom.xml:
##########
@@ -262,7 +307,7 @@ under the License.
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
-                <version>2.0.3.RELEASE</version>
+                <version>${spring.version}</version>

Review Comment:
   [P1] Preserve access to uploaded CA certificates in the executable JAR
   
   The BE launches this artifact with `java -jar`. The upgraded loader supplies 
a `jar:nested:` code-source URL, but `SmallFileMgr.getLocalDir()` truncates it 
at the first `!` and passes the remaining `nested:` URI to `File(URI)`, which 
requires a `file:` URI. MySQL and PostgreSQL CDC jobs using an uploaded 
`ssl_rootcert` fail before even checking the certificate cache. Resolve the 
real archive directory or pass the cache directory from BE, and cover the 
`FILE:` lookup in a packaged launch test. [Spring Boot archive URL 
construction](https://github.com/spring-projects/spring-boot/blob/v4.1.1/loader/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/jar/JarUrl.java#L66-L78).



-- 
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]

Reply via email to