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

Question: When to call consumer seek method? #484

Closed
jesseXu opened this issue Jun 20, 2022 · 1 comment
Closed

Question: When to call consumer seek method? #484

jesseXu opened this issue Jun 20, 2022 · 1 comment

Comments

@jesseXu
Copy link

jesseXu commented Jun 20, 2022

If I call seek method directly after subscription will get error - Local: Unknow partition. However if I call seek method after successfully received a message(through consumer.recv().await) then it will work. What is a proper way to call seek if I wanna consume message from specific offset once the consumer is connected?

@jesseXu
Copy link
Author

jesseXu commented Jun 20, 2022

I'll close this issue since actually it seems it is the only way to call the seek. If I wanna consume from specific offset then I should use the assign instead of subscribe. then back to the previous issue. #482

@jesseXu jesseXu closed this as completed Jun 20, 2022
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

No branches or pull requests

1 participant