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

[Feature] Improve convenience for skipping historical messages when creating a new consumer group #9088

Open
0xCAFEBABE0 opened this issue Dec 30, 2024 · 1 comment

Comments

@0xCAFEBABE0
Copy link

0xCAFEBABE0 commented Dec 30, 2024

Is Your Feature Request Related to a Problem?

When creating a new consumer group, if we want to avoid consuming historical messages, the current methods are either:

  • Manually skipping messages through the Dashboard, or
  • Using mqadmin to clone the consumer group and then reset the offsets.

Describe the Solution You'd Like

For topics that have existed online for a long time and continuously accumulate large amounts of data, there is often a need to skip historical messages when creating a new consumer group. Currently, this can only be achieved using mqadmin commands.

Describe Alternatives You've Considered

While these methods work, they can be cumbersome in certain scenarios. Would you consider providing a more straightforward way to achieve this, such as an option to directly skip historical messages when the consumer group is created? This would greatly improve usability and efficiency.

Additional Context

It would be helpful to introduce a more user-friendly and streamlined solution for skipping historical messages when adding a new consumer group, without relying on manual mqadmin operations.

@lizhimins
Copy link
Member

lizhimins commented Dec 31, 2024

When the consumer group starts, use the seek method to select the offset.

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

No branches or pull requests

2 participants