Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[ISSUE #1939]🔖PopMessageProcessor supports process_request handle-4🚀 #1950

Merged
merged 2 commits into from
Dec 25, 2024

Conversation

mxsm
Copy link
Owner

@mxsm mxsm commented Dec 25, 2024

Which Issue(s) This PR Fixes(Closes)

Fixes #1939

Brief Description

How Did You Test This Change?

Summary by CodeRabbit

  • New Features

    • Enhanced message processing capabilities with new parameters in message processors.
    • Introduced a new method to retrieve the latest offset in the PopBufferMergeService.
    • Added a method to access message queue offsets in GetMessageResult.
    • New configuration option for retry topic behavior in BrokerConfig.
  • Bug Fixes

    • Improved memory management and concurrency for message filters across various components.
  • Documentation

    • Updated method signatures and added comments for clarity in the broker configuration.
  • Refactor

    • Simplified the handling of message filters in multiple processor methods.
  • Chores

    • Restored and validated methods in the ExtraInfoUtil for processing extra information strings.

Copy link
Contributor

coderabbitai bot commented Dec 25, 2024

Walkthrough

This pull request introduces enhancements to the RocketMQ Rust broker's message processing infrastructure, focusing on the PopMessageProcessor, BrokerRuntime, and related components. Key modifications include the addition of new parameters in processor initializations, changes to method signatures for improved message filtering, and the introduction of new methods and fields to manage consumer order information and inflight messages. These changes aim to enhance the overall message handling capabilities within the broker runtime.

Changes

File Change Summary
rocketmq-broker/src/broker_runtime.rs Updated init_processor method to include new parameters for PopMessageProcessor and AckMessageProcessor
rocketmq-broker/src/long_polling/long_polling_service/pop_long_polling_service.rs Modified polling method signature to use Option<Arc<Box<dyn MessageFilter>>>
rocketmq-broker/src/offset/manager/consumer_order_info_manager.rs Added new method update in ConsumerOrderInfoManager
rocketmq-broker/src/processor/default_pull_message_result_handler.rs Updated handle method signature to use Arc<Box<dyn MessageFilter>>
rocketmq-broker/src/processor/pop_message_processor.rs Added new fields and updated constructor with consumer_offset_manager, consumer_order_info_manager, and pop_inflight_message_counter
rocketmq-broker/src/processor/pull_message_processor.rs Updated variable type for message_filter to Arc<Box<dyn MessageFilter>>
rocketmq-broker/src/processor/pull_message_result_handler.rs Updated handle method signature to use Arc<Box<dyn MessageFilter>>
rocketmq-common/src/common/broker/broker_config.rs Added new field pop_response_return_actual_retry_topic to BrokerConfig
rocketmq-remoting/src/protocol/header/extra_info_util.rs Updated build_msg_offset_info method to use Vec<u64>
rocketmq-store/src/base/get_message_result.rs Added method message_queue_offset to GetMessageResult
rocketmq-store/src/log_file.rs Updated get_message method signature to use Option<Arc<Box<dyn MessageFilter>>>
rocketmq-store/src/message_store/default_message_store.rs Updated get_message method signature to use Option<Arc<Box<dyn MessageFilter>>>

Assessment against linked issues

Objective Addressed Explanation
PopMessageProcessor process_request support [#1939]

Possibly related PRs

Suggested labels

rocketmq-broker crate

Suggested reviewers

  • TeslaRustor
  • SpaceXCN
  • RocketmqRustBot

Poem

🐰 Hop, hop, through the message queue's dance,
Processors twirl with a newfound stance,
Arc and filters, a concurrent delight,
RocketMQ Rust takes a powerful flight! 🚀


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ddcd2c4 and 59ee0bb.

📒 Files selected for processing (5)
  • rocketmq-broker/src/offset/manager/consumer_order_info_manager.rs (1 hunks)
  • rocketmq-broker/src/processor/processor_service/pop_buffer_merge_service.rs (1 hunks)
  • rocketmq-common/src/common/broker/broker_config.rs (2 hunks)
  • rocketmq-remoting/src/protocol/header/extra_info_util.rs (1 hunks)
  • rocketmq-store/src/base/get_message_result.rs (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (5)
  • rocketmq-broker/src/processor/processor_service/pop_buffer_merge_service.rs
  • rocketmq-common/src/common/broker/broker_config.rs
  • rocketmq-store/src/base/get_message_result.rs
  • rocketmq-remoting/src/protocol/header/extra_info_util.rs
  • rocketmq-broker/src/offset/manager/consumer_order_info_manager.rs

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?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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 using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@rocketmq-rust-bot
Copy link
Collaborator

🔊@mxsm 🚀Thanks for your contribution🎉!

💡CodeRabbit(AI) will review your code first🔥!

Note

🚨The code review suggestions from CodeRabbit are to be used as a reference only, and the PR submitter can decide whether to make changes based on their own judgment. Ultimately, the project management personnel will conduct the final code review💥.

@rocketmq-rust-robot rocketmq-rust-robot added the feature🚀 Suggest an idea for this project. label Dec 25, 2024
Copy link

codecov bot commented Dec 25, 2024

Codecov Report

Attention: Patch coverage is 0.54496% with 365 lines in your changes missing coverage. Please review.

Project coverage is 28.32%. Comparing base (fd06db8) to head (59ee0bb).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...etmq-broker/src/processor/pop_message_processor.rs 0.00% 326 Missing ⚠️
.../src/offset/manager/consumer_order_info_manager.rs 0.00% 13 Missing ⚠️
...q-store/src/message_store/default_message_store.rs 0.00% 10 Missing ⚠️
...tmq-broker/src/processor/pull_message_processor.rs 0.00% 5 Missing ⚠️
rocketmq-broker/src/broker_runtime.rs 0.00% 3 Missing ⚠️
rocketmq-store/src/base/get_message_result.rs 0.00% 3 Missing ⚠️
...c/processor/default_pull_message_result_handler.rs 0.00% 2 Missing ⚠️
...ssor/processor_service/pop_buffer_merge_service.rs 0.00% 2 Missing ⚠️
...g/long_polling_service/pop_long_polling_service.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1950      +/-   ##
==========================================
- Coverage   28.45%   28.32%   -0.14%     
==========================================
  Files         486      486              
  Lines       68034    68355     +321     
==========================================
+ Hits        19362    19363       +1     
- Misses      48672    48992     +320     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (11)
rocketmq-common/src/common/broker/broker_config.rs (4)

58-104: Multiple factory methods might be consolidated or DRYed.

new, new_with_container, new_with_params, and new_with_container_params share common logic. Consider extracting shared code to reduce duplication if usage patterns allow.


106-189: BrokerConfig: Large struct with numerous fields.

  1. This struct organizes many fields. Depending on how these are used, consider grouping related settings into sub-structs to improve readability.
  2. The new field pop_response_return_actual_retry_topic is a clear addition. Ensure it’s consistently read/used by the relevant pop logic to avoid confusion.

285-575: get_properties method: Potential performance overhead.

  1. This method collects fields into a HashMap each time. If called frequently, consider caching or using a lazy approach.
  2. The property keys are user-facing. Confirm that naming is consistent with any existing config standards.

578-583: default_broker_name is straightforward.

Reading LOCAL_HOST_NAME is fine. Consider logging or warning if the hostname is not found and you use "DEFAULT_BROKER" as fallback.

rocketmq-broker/src/processor/pop_message_processor.rs (3)

84-85: Arc references to the offset managers.

Line 84-85 indicates new fields in the PopMessageProcessor. Combining them under a single struct could simplify passing them around if usage grows.


Line range hint 447-566: Pop from retry topic logic duplication.

These blocks for v1 vs. v2 retry topic might be made DRY by extracting a helper function. The logic is almost identical except for the topic name.


660-681: pop_msg_from_topic: Round-robin logic.

You’re doing (random_q + index as i32) % topic_config.read_queue_nums. This is reasonable for distributing loads. Consider if the distribution is truly random or if it needs more uniform randomization.

rocketmq-broker/src/offset/manager/consumer_order_info_manager.rs (2)

17-18: Unused variables lint override.

The #![allow(unused_variables)] annotation may hide accidental oversights. If feasible, consider removing it and addressing any unused variables directly.


268-281: Unimplemented placeholder update method.

The update method signature suggests important future logic. For better clarity and tracking, either implement its functionality or add a descriptive TODO comment within the method body.

rocketmq-broker/src/processor/pull_message_processor.rs (1)

683-691: Use a more descriptive or context-aware name for message_filter.
The variable name message_filter is accurate yet might be mistaken for local filtering only. Consider clarifying the scope or purpose, for instance retry_or_expression_filter, to better reflect that it can be one of two filter types.

rocketmq-store/src/message_store/default_message_store.rs (1)

965-972: Gracefully handle filtering errors in is_matched_by_commit_log.
While the code correctly continues when a message fails the commit-log check, consider logging or aggregating counts of rejections for deeper insight into how many messages are skipped due to filtering.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fd06db8 and ddcd2c4.

📒 Files selected for processing (13)
  • rocketmq-broker/src/broker_runtime.rs (1 hunks)
  • rocketmq-broker/src/long_polling/long_polling_service/pop_long_polling_service.rs (1 hunks)
  • rocketmq-broker/src/offset/manager/consumer_order_info_manager.rs (1 hunks)
  • rocketmq-broker/src/processor/default_pull_message_result_handler.rs (2 hunks)
  • rocketmq-broker/src/processor/pop_message_processor.rs (18 hunks)
  • rocketmq-broker/src/processor/processor_service/pop_buffer_merge_service.rs (1 hunks)
  • rocketmq-broker/src/processor/pull_message_processor.rs (2 hunks)
  • rocketmq-broker/src/processor/pull_message_result_handler.rs (2 hunks)
  • rocketmq-common/src/common/broker/broker_config.rs (1 hunks)
  • rocketmq-remoting/src/protocol/header/extra_info_util.rs (1 hunks)
  • rocketmq-store/src/base/get_message_result.rs (1 hunks)
  • rocketmq-store/src/log_file.rs (1 hunks)
  • rocketmq-store/src/message_store/default_message_store.rs (3 hunks)
✅ Files skipped from review due to trivial changes (1)
  • rocketmq-remoting/src/protocol/header/extra_info_util.rs
🔇 Additional comments (27)
rocketmq-common/src/common/broker/broker_config.rs (5)

18-20: Imports look appropriate.

You are using Any in this file, but it does not appear to be referenced later in the code. Verify if you plan to use dynamic type checks in the future.


35-46: Consider verifying the lazy-static usage for concurrency safety and overhead.

lazy_static! macros are suitable for one-time initialization, but if these values ever need dynamic updates, consider other approaches. If static references remain constant, this usage is fine.


48-56: Struct BrokerIdentity: Good encapsulation.

Struct fields are clearly named. Watch for future feature creep—some booleans may evolve into enumerations or consolidated fields.


191-283: Default trait implementation is comprehensive.

  1. Good job providing sensible defaults for each field.
  2. Consider referencing environment variables or a configuration file for broker IP/port to reduce potential coupling with system environment calls.

584-603: TopicQueueConfig and TimerWheelConfig usage.

They look fine. For extremely large-scale usage, double-check that defaults (e.g., timer_wheel_enable: bool) work for typical production scenarios.

rocketmq-broker/src/processor/pop_message_processor.rs (12)

37-37: Ensure message decoding usage is consistent.

Line 37 references rocketmq_common::common::message::message_decoder, but usage occurs further down. Confirm it’s actually utilized in the branch that’s not yet implemented.


45-45: ExtraInfoUtil usage.

Ensure consistent usage of ExtraInfoUtil across all relevant code paths that handle extended fields for pop messages.


73-75: New consumer offset and order managers.

The additional managers (ConsumerOffsetManager, ConsumerOrderInfoManager) are introduced. Verify correct initialization in other places (e.g., broker_runtime).


95-95: pop_inflight_message_counter usage.

This is a powerful concurrency tracking tool. Ensure atomic increments/decrements match message lifecycle to avoid memory leaks.


101-102: Constructor parameter addition.

consumer_offset_manager and consumer_order_info_manager are now mandatory. Verify any existing tests or code paths that call PopMessageProcessor::new(...).


112-114: Initialization block uses ArcMut::new(...).

Double-check concurrency patterns, as ArcMut is a specialized type. Confirm that no data race occurs if PopLongPollingService or PopBufferMergeService is mutated concurrently.


421-423: Creating GetMessageResult with new_result_size() is appropriate.

Ensure the max_msg_nums argument is validated to avoid large memory allocations.


436-436: Mapping message_filter to Arc.

Converting Box<dyn MessageFilter> to Arc<Box<dyn MessageFilter>>> is typical for concurrency. Ensure all implementors are thread-safe.


653-654: Additional optional message_filter.

Re-check usage for topics that might require different filters or no filter at all.


684-719: pop_msg_from_topic_by_name: Good fallback.

Simplifies code by reusing pop_msg_from_topic. Ensure no infinite loops if the same fallback is called repeatedly.


953-961: is_pop_should_stop unimplemented.

Recommend a sane default (e.g., returning true or false) plus logging.


962-991: get_pop_offset logic.

Possible race conditions if pop_buffer_merge_service.get_latest_offset is updated concurrently. Confirm consistency with consumer_offset_manager.

rocketmq-broker/src/long_polling/long_polling_service/pop_long_polling_service.rs (1)

53-53: Changed message_filter type from Arc<Option<Box<dyn MessageFilter>>> to Option<Arc<Box<dyn MessageFilter>>>>.

This is an improvement—logic for optional filters is typically easier to handle than an Arc<Option<...>>. Check all call sites to ensure they handle None properly now.

rocketmq-broker/src/processor/pull_message_result_handler.rs (1)

71-71: Shift to Arc<Box<dyn MessageFilter>>.

Supports concurrency more consistently. Ensure implementing objects are sync-safe to avoid data races.

rocketmq-store/src/base/get_message_result.rs (1)

231-233: Expose message_queue_offset with caution.

Returning a reference to an internal vector is fine in this context, but be mindful if any future modifications might require more controlled access, such as returning a slice or an iterator for safety.

rocketmq-store/src/log_file.rs (1)

249-249: Ensure correct usage of Arc<Box> throughout.

Updating the filter parameter type from Option<&dyn MessageFilter> to Option<Arc<Box<dyn MessageFilter>>> is consistent with the rest of the codebase, allowing shared ownership. Verify all call sites to confirm they properly supply this new type.

rocketmq-broker/src/processor/default_pull_message_result_handler.rs (2)

122-122: Adopt Arc<Box> for concurrency.

The signature update aligns with concurrent usage patterns. Ensure that the filter is safely shared among threads without risking data races.


237-237: Suspend logic uses the updated filter reference.

Verify that suspending the pull request with message_filter maintains the expected lifetime and concurrency guarantees, especially under high load or frequently suspended requests.

rocketmq-broker/src/processor/pull_message_processor.rs (1)

744-744: Confirm message_filter.clone() usage across the codebase.
Passing message_filter.clone() ensures that each call site receives a shared reference, but verify you’ve replaced all old references to match the new Arc-wrapped type to avoid any potential mismatches.

rocketmq-broker/src/broker_runtime.rs (1)

566-574: Ensure consistency when adding new parameters to PopMessageProcessor.
These newly introduced fields (consumer_offset_manager, consumer_order_info_manager, pop_inflight_message_counter) expand the processor’s capabilities significantly. Confirm the initialization of these fields is always in sync with their usage in PopMessageProcessor logic (e.g., verifying none remain unused or incorrectly cloned).

rocketmq-store/src/message_store/default_message_store.rs (2)

797-797: Check for None usage where a filter might be required.
The updated parameter signature now expects an Option<Arc<Box<dyn MessageFilter>>>. Ensure that any call sites that intentionally pass None remain valid if filtering is mandatory at any point in the call flow.


Line range hint 934-938: Validate is_matched_by_consume_queue usage before commit log checks.
This block correctly short-circuits early if the consume-queue-level filter fails, saving resources. Just confirm that skipping the commit-log check is desired and consistent with the overall filtering logic.

Comment on lines +724 to +938
topic,
queue_id,
offset,
request_header.max_msg_nums as i32
- get_message_result.message_mapped_list().len() as i32,
1024 * 1024,
message_filter,
)
.await;
match get_message_result_in {
None => {
let num =
self.message_store.get_max_offset_in_queue(topic, queue_id)
- atomic_offset.load(Ordering::Acquire)
+ atomic_rest_num.load(Ordering::Acquire);
return num;
}
Some(value) => value,
}
}
_ => result,
}
};
if !result_inner.message_mapped_list().is_empty() {
if is_order {
self.consumer_order_info_manager.update(
request_header.attempt_id.clone().unwrap_or_default(),
is_retry,
topic,
&request_header.consumer_group,
queue_id,
pop_time,
request_header.invisible_time,
result_inner.message_queue_offset().clone(),
order_count_info,
);
self.consumer_offset_manager.commit_offset(
channel.remote_address(),
&request_header.consumer_group,
topic,
queue_id,
final_offset,
);
} else if !self.append_check_point(
request_header,
topic,
revive_qid,
queue_id,
final_offset,
&result_inner,
pop_time as i64,
self.broker_config.broker_name.as_str(),
) {
return atomic_rest_num.load(Ordering::Acquire)
+ result_inner.message_count() as i64;
}

ExtraInfoUtil::build_start_offset_info(
start_offset_info,
topic,
queue_id,
final_offset,
);
ExtraInfoUtil::build_msg_offset_info(
msg_offset_info,
topic,
queue_id,
result_inner.message_queue_offset().clone(),
);
} else {
unimplemented!()
}

atomic_rest_num.fetch_add(
result_inner.max_offset() - result_inner.next_begin_offset(),
Ordering::AcqRel,
);
let broker_name = self.broker_config.broker_name.as_str();
for msg in result_inner.message_mapped_list() {
if self.broker_config.pop_response_return_actual_retry_topic || !is_retry {
//get_message_result.message_mapped_list().push(msg.clone());
} else {
let mut bytes = msg.get_bytes().unwrap_or_default();
let message_ext_list =
message_decoder::decodes_batch(&mut bytes, true, false);
unimplemented!("PopMessageProcessor pop_msg_from_queue")
}
}
self.pop_inflight_message_counter
.increment_in_flight_message_num(
topic,
&request_header.consumer_group,
queue_id,
result_inner.message_count() as i64,
);
}
}
self.queue_lock_manager().unlock_with_key(lock_key).await;
atomic_rest_num.load(Ordering::Acquire)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

pop_msg_from_queue: Complex logic mixing offset, concurrency, and queue locking.

  1. Hard-coded calls to unimplemented!() break code flow if triggered. Provide at least a graceful error or handle the scenario if the function is essential.
  2. The queue lock approach is correct for concurrency but consider any performance overhead with try_lock_with_key.
  3. Ensure consistent offset commits if an error occurs midway.

Comment on lines +939 to +952
fn append_check_point(
&self,
request_header: &PopMessageRequestHeader,
topic: &str,
revive_qid: i32,
queue_id: i32,
offset: i64,
get_message_tmp_result: &GetMessageResult,
pop_time: i64,
broker_name: &str,
) -> bool {
unimplemented!()
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

append_check_point unimplemented.

Calls to an unimplemented method can hinder functionality. Return an error or default behavior instead, to prevent runtime panics.

-    unimplemented!()
+    // Possibly return a boolean or store an event log:
+    trace!("append_check_point is not implemented yet");
+    false
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
fn append_check_point(
&self,
request_header: &PopMessageRequestHeader,
topic: &str,
revive_qid: i32,
queue_id: i32,
offset: i64,
get_message_tmp_result: &GetMessageResult,
pop_time: i64,
broker_name: &str,
) -> bool {
unimplemented!()
}
fn append_check_point(
&self,
request_header: &PopMessageRequestHeader,
topic: &str,
revive_qid: i32,
queue_id: i32,
offset: i64,
get_message_tmp_result: &GetMessageResult,
pop_time: i64,
broker_name: &str,
) -> bool {
trace!("append_check_point is not implemented yet");
false
}

Comment on lines 27 to 29
pub fn get_latest_offset(&self, _lock_key: &str) -> i64 {
unimplemented!("Not implemented yet");
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

get_latest_offset is unimplemented.

Provide at least a stub or default logic to avoid panics in production. Leaving this unimplemented can break the code path in PopMessageProcessor.

-    unimplemented!("Not implemented yet");
+    // Return a default offset or retrieve real offset
+    0
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
pub fn get_latest_offset(&self, _lock_key: &str) -> i64 {
unimplemented!("Not implemented yet");
}
pub fn get_latest_offset(&self, _lock_key: &str) -> i64 {
// Return a default offset or retrieve real offset
0
}

@rocketmq-rust-bot
Copy link
Collaborator

🔊@mxsm 🚀Thanks for your contribution🎉!

💡CodeRabbit(AI) will review your code first🔥!

Note

🚨The code review suggestions from CodeRabbit are to be used as a reference only, and the PR submitter can decide whether to make changes based on their own judgment. Ultimately, the project management personnel will conduct the final code review💥.

@rocketmq-rust-bot rocketmq-rust-bot merged commit 100dffb into main Dec 25, 2024
16 of 18 checks passed
@mxsm mxsm deleted the feature-1939 branch December 25, 2024 15:38
@rocketmq-rust-bot rocketmq-rust-bot added approved PR has approved and removed ready to review waiting-review waiting review this PR labels Dec 25, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
AI review first Ai review pr first approved PR has approved auto merge feature🚀 Suggest an idea for this project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature🚀]PopMessageProcessor supports process_request handle-4
3 participants