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

   ### Which Issue(s) This PR Fixes
   
   - Fixes #11549
   
   ### Brief Description
   
   BrokerContainer accepted brokers configured with listenPort 0, allowing the 
remoting layer to bind an OS-assigned port while broker registration still 
advertised port 0. This change rejects non-positive listen ports before 
role-specific controller initialization, preventing invalid routes and avoiding 
partial broker registration. Requests handled through the container processor 
continue to use its existing error response path. The regression test verifies 
the validation failure and confirms that no master broker is inserted.
   
   ### How Did You Test This Change?
   
   `mvn test -pl container` - passed (Tests run: 27, Failures: 0, Errors: 0, 
Skipped: 0)


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