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

   ### Which Issue(s) This PR Fixes
   
   Fixes #11526
   
   ### Brief Description
   
   Proxy operators can now bind the data-plane and Admin gRPC servers to 
independent local addresses using `grpcServerBindAddress` and 
`grpcAdminServerBindAddress`. This allows an Admin listener on a 
management-network IP or loopback while the data plane uses a different address.
   
   Both settings default to an empty string and preserve wildcard binding. 
Existing port settings and port-based `GrpcServerBuilder` APIs remain 
compatible. New `InetSocketAddress` overloads reuse the existing 
TLS/interceptor setup and event-loop ownership/lifecycle behavior. Addresses 
take effect when Proxy starts.
   
   Example in `rmq-proxy.json`:
   ```json
   {
     "grpcServerBindAddress": "192.0.2.10",
     "grpcServerPort": 8081,
     "grpcAdminServerBindAddress": "127.0.0.1",
     "grpcAdminServerPort": 8088
   }
   ```
   
   ### How Did You Test This Change?
   
   - Linux JDK 8: 23 tests passed, zero failures/errors/skips, with Checkstyle 
and SpotBugs enabled:
     ```sh
     mvn -B -pl proxy -am 
-Dtest=GrpcServerTest,ProxyStartupTest,ProxyConfigTest,GrpcServerInterceptorOrderTest
 -Dsurefire.failIfNoSpecifiedTests=false test
     ```
   - Actual gRPC calls over IPv4 and IPv6 using both NIO and Epoll, with 
connections to other local addresses rejected.
   - Wildcard compatibility for port-only builders, configuration loading, and 
owned/borrowed event-loop lifecycle checks.
   


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