[ISSUE ##748]🔥Implement message arrival notification for consumers🎨#749
[ISSUE ##748]🔥Implement message arrival notification for consumers🎨#749
Conversation
|
🚀Thanks for your contribution🎉. CodeRabbit(AI) will review your code first🔥 |
WalkthroughThe updates to RocketMQ include several refinements such as reordering initializer logic in Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant BrokerRuntime
participant Server
participant RequestProcessor
Client ->> BrokerRuntime: Call start_basic_service()
BrokerRuntime ->> Server: Create Server
BrokerRuntime ->> RequestProcessor: Init request_processor
BrokerRuntime ->> RequestProcessor: Clone fast_request_processor
BrokerRuntime ->>+ Server: Start server (tokio::spawn)
BrokerRuntime -->>- Server: Running...
Assessment against linked issues
Poem
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #749 +/- ##
==========================================
- Coverage 27.75% 27.71% -0.04%
==========================================
Files 271 271
Lines 21487 21526 +39
==========================================
+ Hits 5963 5966 +3
- Misses 15524 15560 +36 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
rocketmq-broker/src/broker_runtime.rs (1)
602-602: Typo in comment.Correct the typo in the comment: "start nomarl broker server".
- //start nomarl broker server + //start normal broker server
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (3)
- rocketmq-broker/src/broker_runtime.rs (1 hunks)
- rocketmq-broker/src/processor/default_pull_message_result_handler.rs (1 hunks)
- rocketmq-store/src/message_store/default_message_store.rs (4 hunks)
Files skipped from review due to trivial changes (1)
- rocketmq-broker/src/processor/default_pull_message_result_handler.rs
Additional context used
GitHub Check: codecov/patch
rocketmq-broker/src/broker_runtime.rs
[warning] 593-594: rocketmq-broker/src/broker_runtime.rs#L593-L594
Added lines #L593 - L594 were not covered by testsrocketmq-store/src/message_store/default_message_store.rs
[warning] 225-226: rocketmq-store/src/message_store/default_message_store.rs#L225-L226
Added lines #L225 - L226 were not covered by tests
[warning] 1068-1069: rocketmq-store/src/message_store/default_message_store.rs#L1068-L1069
Added lines #L1068 - L1069 were not covered by tests
[warning] 1074-1075: rocketmq-store/src/message_store/default_message_store.rs#L1074-L1075
Added lines #L1074 - L1075 were not covered by tests
[warning] 1082-1088: rocketmq-store/src/message_store/default_message_store.rs#L1082-L1088
Added lines #L1082 - L1088 were not covered by tests
[warning] 1092-1092: rocketmq-store/src/message_store/default_message_store.rs#L1092
Added line #L1092 was not covered by tests
[warning] 1096-1096: rocketmq-store/src/message_store/default_message_store.rs#L1096
Added line #L1096 was not covered by tests
[warning] 1100-1100: rocketmq-store/src/message_store/default_message_store.rs#L1100
Added line #L1100 was not covered by tests
[warning] 1103-1109: rocketmq-store/src/message_store/default_message_store.rs#L1103-L1109
Added lines #L1103 - L1109 were not covered by tests
[warning] 1111-1111: rocketmq-store/src/message_store/default_message_store.rs#L1111
Added line #L1111 was not covered by tests
[warning] 1118-1124: rocketmq-store/src/message_store/default_message_store.rs#L1118-L1124
Added lines #L1118 - L1124 were not covered by tests
[warning] 1146-1146: rocketmq-store/src/message_store/default_message_store.rs#L1146
Added line #L1146 was not covered by tests
[warning] 1148-1148: rocketmq-store/src/message_store/default_message_store.rs#L1148
Added line #L1148 was not covered by tests
[warning] 1202-1202: rocketmq-store/src/message_store/default_message_store.rs#L1202
Added line #L1202 was not covered by tests
[warning] 1209-1209: rocketmq-store/src/message_store/default_message_store.rs#L1209
Added line #L1209 was not covered by tests
Additional comments not posted (15)
rocketmq-broker/src/broker_runtime.rs (1)
593-594: Ensure test coverage for new lines.The lines initializing
request_processorandfast_request_processorare not covered by tests.Consider adding tests to cover these lines and ensure they function as expected.
Tools
GitHub Check: codecov/patch
[warning] 593-594: rocketmq-broker/src/broker_runtime.rs#L593-L594
Added lines #L593 - L594 were not covered by testsrocketmq-store/src/message_store/default_message_store.rs (14)
225-226: Ensure test coverage for new fields.The
message_store_configandinnerfields are not covered by tests.Consider adding tests to cover these fields and ensure they function as expected.
Tools
GitHub Check: codecov/patch
[warning] 225-226: rocketmq-store/src/message_store/default_message_store.rs#L225-L226
Added lines #L225 - L226 were not covered by tests
1068-1069: Ensure test coverage for new fields.The
message_store_configandinnerfields are not covered by tests.Consider adding tests to cover these fields and ensure they function as expected.
Tools
GitHub Check: codecov/patch
[warning] 1068-1069: rocketmq-store/src/message_store/default_message_store.rs#L1068-L1069
Added lines #L1068 - L1069 were not covered by tests
1074-1081: Ensure test coverage for new conditions.The new conditions in the
notify_message_arrive4multi_queuemethod are not covered by tests.Consider adding tests to cover these conditions and ensure they function as expected.
Tools
GitHub Check: codecov/patch
[warning] 1074-1075: rocketmq-store/src/message_store/default_message_store.rs#L1074-L1075
Added lines #L1074 - L1075 were not covered by tests
1082-1088: Ensure test coverage for new conditions.The new conditions in the
notify_message_arrive4multi_queuemethod are not covered by tests.Consider adding tests to cover these conditions and ensure they function as expected.
Tools
GitHub Check: codecov/patch
[warning] 1082-1088: rocketmq-store/src/message_store/default_message_store.rs#L1082-L1088
Added lines #L1082 - L1088 were not covered by tests
1092-1092: Ensure test coverage for new conditions.The new conditions in the
notify_message_arrive4multi_queuemethod are not covered by tests.Consider adding tests to cover these conditions and ensure they function as expected.
Tools
GitHub Check: codecov/patch
[warning] 1092-1092: rocketmq-store/src/message_store/default_message_store.rs#L1092
Added line #L1092 was not covered by tests
1096-1096: Ensure test coverage for new conditions.The new conditions in the
notify_message_arrive4multi_queuemethod are not covered by tests.Consider adding tests to cover these conditions and ensure they function as expected.
Tools
GitHub Check: codecov/patch
[warning] 1096-1096: rocketmq-store/src/message_store/default_message_store.rs#L1096
Added line #L1096 was not covered by tests
1100-1100: Ensure test coverage for new conditions.The new conditions in the
notify_message_arrive4multi_queuemethod are not covered by tests.Consider adding tests to cover these conditions and ensure they function as expected.
Tools
GitHub Check: codecov/patch
[warning] 1100-1100: rocketmq-store/src/message_store/default_message_store.rs#L1100
Added line #L1100 was not covered by tests
1103-1109: Ensure test coverage for new conditions.The new conditions in the
notify_message_arrive4multi_queuemethod are not covered by tests.Consider adding tests to cover these conditions and ensure they function as expected.
Tools
GitHub Check: codecov/patch
[warning] 1103-1109: rocketmq-store/src/message_store/default_message_store.rs#L1103-L1109
Added lines #L1103 - L1109 were not covered by tests
1111-1111: Ensure test coverage for new conditions.The new conditions in the
notify_message_arrive4multi_queuemethod are not covered by tests.Consider adding tests to cover these conditions and ensure they function as expected.
Tools
GitHub Check: codecov/patch
[warning] 1111-1111: rocketmq-store/src/message_store/default_message_store.rs#L1111
Added line #L1111 was not covered by tests
1118-1124: Ensure test coverage for new conditions.The new conditions in the
notify_message_arrive4multi_queuemethod are not covered by tests.Consider adding tests to cover these conditions and ensure they function as expected.
Tools
GitHub Check: codecov/patch
[warning] 1118-1124: rocketmq-store/src/message_store/default_message_store.rs#L1118-L1124
Added lines #L1118 - L1124 were not covered by tests
1146-1146: Ensure test coverage for new initialization.The initialization of the
innerfield using anArcis not covered by tests.Consider adding tests to cover this initialization and ensure it functions as expected.
Tools
GitHub Check: codecov/patch
[warning] 1146-1146: rocketmq-store/src/message_store/default_message_store.rs#L1146
Added line #L1146 was not covered by tests
1148-1148: Ensure test coverage for new initialization.The initialization of the
innerfield using anArcis not covered by tests.Consider adding tests to cover this initialization and ensure it functions as expected.
Tools
GitHub Check: codecov/patch
[warning] 1148-1148: rocketmq-store/src/message_store/default_message_store.rs#L1148
Added line #L1148 was not covered by tests
1202-1202: Ensure test coverage for new struct.The
ReputMessageServiceInnerstruct is not covered by tests.Consider adding tests to cover this struct and ensure it functions as expected.
Tools
GitHub Check: codecov/patch
[warning] 1202-1202: rocketmq-store/src/message_store/default_message_store.rs#L1202
Added line #L1202 was not covered by tests
1209-1209: Ensure test coverage for new field.The
message_storefield in theReputMessageServiceInnerstruct is not covered by tests.Consider adding tests to cover this field and ensure it functions as expected.
Tools
GitHub Check: codecov/patch
[warning] 1209-1209: rocketmq-store/src/message_store/default_message_store.rs#L1209
Added line #L1209 was not covered by tests
Which Issue(s) This PR Fixes(Closes)
Fixes #748
Brief Description
How Did You Test This Change?
Summary by CodeRabbit
New Features
ReputMessageService.Refactor
start_basic_servicefor better performance and reliability.ReputMessageServiceto improve code maintainability and performance.Bug Fixes