Closed mxsm closed 3 weeks ago
[!CAUTION]
Review failed
The pull request is closed.
The changes involve multiple enhancements across various modules in the rocketmq
codebase. Key updates include the introduction of new dependencies for UUID handling, modifications for request-response management within producers, and updates to error handling mechanisms. Additionally, new utility functions for generating correlation IDs have been added, along with structural modifications to support asynchronous operations and improved encapsulation of data.
File Path | Change Summary |
---|---|
Cargo.toml , rocketmq-common/Cargo.toml , rocketmq-remoting/Cargo.toml , rocketmq-client/Cargo.toml |
Added uuid and once_cell dependencies, with modifications to their configurations for workspace usage. |
rocketmq-client/src/factory/mq_client_instance.rs |
Changed client_id and topic_route_table fields to pub(crate) visibility in MQClientInstance . |
rocketmq-client/src/producer.rs |
Introduced two new modules: request_future_holder and request_response_future with pub(crate) visibility. |
rocketmq-client/src/producer/default_mq_producer.rs , rocketmq-client/src/producer/mq_producer.rs |
Modified request method signatures to accept mutable message ownership for direct modifications. |
rocketmq-client/src/producer/producer_impl/default_mq_producer_impl.rs |
Added asynchronous request and wait_response methods to DefaultMQProducerImpl for enhanced message handling. |
rocketmq-client/src/producer/request_callback.rs |
Introduced a new type alias RequestCallbackFn to support flexible callback functions. |
rocketmq-client/src/producer/request_future_holder.rs , rocketmq-client/src/producer/request_response_future.rs |
Implemented new structs for managing asynchronous request-response futures. |
rocketmq-common/src/common/message/message_accessor.rs |
Added put_property method to MessageAccessor for setting message properties. |
rocketmq-common/src/utils.rs , rocketmq-common/src/utils/correlation_id_util.rs |
Introduced a new module for correlation ID utilities along with a struct for generation. |
rocketmq-remoting/src/clients/blocking_client.rs |
Commented out the invoke_oneway function in BlockingClient , disabling one-way requests. |
rocketmq-remoting/src/error.rs |
Commented out the Elapsed variant in the Error enum, simplifying error handling. |
Objective | Addressed | Explanation |
---|---|---|
Support producer send RPC messages (#916) | ✅ |
🐰 A rabbit hops with glee,
New code brings harmony!
UUIDs for every trace,
Async calls now embrace.
A world of messages, all in queue,
Thank you, dear devs, for all you do! 🥕
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🔥
🚀Thanks for your contribution🎉. CodeRabbit(AI) will review your code first🔥
Attention: Patch coverage is 0%
with 85 lines
in your changes missing coverage. Please review.
Project coverage is 23.92%. Comparing base (
edd3f7c
) to head (cf79b3b
). Report is 1 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 #916
Brief Description
How Did You Test This Change?
Summary by CodeRabbit
New Features
uuid
crate.Bug Fixes
invoke_oneway
function inBlockingClient
.Elapsed
variant from the error handling enum to streamline error management.Documentation