Skip to content

correct delay offset larger than max offset #6269

@galaxy077

Description

@galaxy077

issue tracker is used for bug reporting purposes ONLY whereas feature request needs to follow the RIP process. To avoid unnecessary duplication, please check whether there is a previous issue before filing a new one.

It is recommended to start a discussion thread in the mailing lists or github discussions in cases of discussing your deployment plan, API clarification, and other non-bug-reporting issues.
We welcome any friendly suggestions, bug fixes, collaboration, and other improvements.

Please ensure that your bug report is clear and self-contained. Otherwise, it would take additional rounds of communication, thus more time, to understand the problem itself.

Generally, fixing an issue goes through the following steps:

Understand the issue reported;
Reproduce the unexpected behavior locally;
Perform root cause analysis to identify the underlying problem;
Create test cases to cover the identified problem;
Work out a solution to rectify the behavior and make the newly created test cases pass;
Make a pull request and go through peer review;
As a result, it would be very helpful yet challenging if you could provide an isolated project reproducing your reported issue. Anyway, please ensure your issue report is informative enough for the community to pick up. At a minimum, include the following hints:

BUG REPORT

Please describe the issue you observed:
What did you do (The steps to reproduce)?
1、run rocketmq 5.0 on test env

2、The current offset is greater than maxoffset when the exact delay has not been used for some time
image
i add some log
log.info("Timer EnqueueGetService enqueue bufferCQ {}, currQueueOffset {} offset result {}", bufferCQ, currQueueOffset, (offset * CQ_STORE_UNIT_SIZE) > cq.getMinLogicOffset());

Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions