Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Bug] Fix correct min offset behavior in tiered storage #7035

Closed
3 tasks done
lizhimins opened this issue Jul 18, 2023 · 0 comments · Fixed by #7038
Closed
3 tasks done

[Bug] Fix correct min offset behavior in tiered storage #7035

lizhimins opened this issue Jul 18, 2023 · 0 comments · Fixed by #7038

Comments

@lizhimins
Copy link
Member

lizhimins commented Jul 18, 2023

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

MacOS, JDK 11

RocketMQ version

branch: develop latest

JDK Version

JDK11

Describe the Bug

When resetting the consumer's offset to an earlier time to start consuming data from tiered storage, we use "clean expired" to remove older data because commitlog and consume queue file have their own lifecycles. However, it is possible for cq file to still exist while the commitlog no longer exists. In this scenario, the data pointed to by cq unit is empty and there is no reasonable "next begin offset" to provide, preventing the client from correcting the position and self-healing the consumption process.

Steps to Reproduce

No.

What Did You Expect to See?

Fix offset success.

What Did You See Instead?

No.

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant