Closed 847850277 closed 2 months ago
The changes introduced significantly enhance the AdminBrokerProcessor
by implementing a new ConsumerRequestHandler
for managing consumer-related requests, specifically for retrieving consumer connection lists. This includes new data structures for connection handling, serialization capabilities, and improvements in the overall protocol architecture for better interaction with consumer connections within RocketMQ.
Files | Change Summary |
---|---|
rocketmq-broker/src/processor/admin_broker_processor.rs , rocketmq-broker/src/processor/admin_broker_processor/consumer_request_handler.rs |
Added ConsumerRequestHandler to handle consumer requests, including the get_consumer_connection_list method for retrieving consumer connection details. |
rocketmq-remoting/src/protocol/body.rs , rocketmq-remoting/src/protocol/body/connection.rs , rocketmq-remoting/src/protocol/body/consumer_connection.rs |
Introduced new modules and structs for managing connections and consumer connections, enhancing data handling and serialization in the messaging protocol. |
rocketmq-remoting/src/protocol/header.rs , rocketmq-remoting/src/protocol/header/get_consumer_connection_list_request_header.rs |
Added new functionality for handling consumer connection list requests, including a new request header struct for better request processing. |
sequenceDiagram
participant Client
participant Broker
participant ConsumerRequestHandler
Client->>Broker: Request consumer connection list
Broker->>ConsumerRequestHandler: Handle request
ConsumerRequestHandler->>ConsumerRequestHandler: Retrieve connection info
ConsumerRequestHandler-->>Broker: Return connection list
Broker-->>Client: Send response with connection list
Objective | Addressed | Explanation |
---|---|---|
Support AdminBrokerProcessor get_consumer_connection_list (#909) |
β |
π° In the fields of code I hop,
New features bloom, they never stop!
Consumer lists, all in a row,
With every request, our system will glow.
So letβs celebrate this code delight,
For Rabbit's magic makes it just right!
πΌ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
πThanks for your contributionπ. CodeRabbit(AI) will review your code firstπ₯
Attention: Patch coverage is 0%
with 152 lines
in your changes missing coverage. Please review.
Project coverage is 24.02%. Comparing base (
2d1e9a7
) to head (ea425f2
). Report is 11 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Which Issue(s) This PR Fixes(Closes)
Fixes #909
Brief Description
How Did You Test This Change?
Summary by CodeRabbit
New Features
Bug Fixes
Documentation