Skip to content

Commit

Permalink
[ISSUE #2347]🐛Fix PopBufferMergeService run too faster
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm committed Jan 20, 2025
1 parent 175be72 commit 4dfef4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ impl<MS: MessageStore> PopBufferMergeService<MS> {
if this.scan_times % this.count_of_second30 == 0 {
this.mut_from_ref().scan_garbage();
}
tokio::time::sleep(tokio::time::Duration::from_millis(this.interval)).await;
tokio::time::sleep(tokio::time::Duration::from_millis(interval)).await;

Check warning on line 478 in rocketmq-broker/src/processor/processor_service/pop_buffer_merge_service.rs

View check run for this annotation

Codecov / codecov/patch

rocketmq-broker/src/processor/processor_service/pop_buffer_merge_service.rs#L478

Added line #L478 was not covered by tests
if !this.serving.load(Ordering::Acquire) && this.buffer.is_empty() && this.get_offset_total_size() == 0 {
this.serving.store(true,Ordering::Release);
}
Expand Down

0 comments on commit 4dfef4f

Please # to comment.