beautyarbutin opened a new pull request, #11208:
URL: https://github.com/apache/rocketmq/pull/11208

   ### Which Issue(s) This PR Fixes
   
   - Fixes #10830
   
   ### Brief Description
   
   `ControllerConfig.getDLedgerAddress()` previously split peer entries at 
every hyphen, so a valid entry such as `n1-controller-backup-host:9879` was 
truncated to `controller`.
   
   Split each entry only at the first hyphen, validate the parsed pair before 
matching the local peer ID, and return the complete address. The regression 
test also covers a malformed entry and a non-matching peer before the matching 
hyphenated host.
   
   This follows up on #10840, which was closed without being merged.
   
   ### How Did You Test This Change?
   
   - `mvn -B -ntp -pl common -DskipITs -Dtest=ControllerConfigTest 
-Dspotbugs.skip=true test`
   - `ControllerConfigTest`: 1 test passed
   - Checkstyle: 0 violations


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