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

offset & consumer groups #199

Closed
DEvil0000 opened this issue Feb 13, 2015 · 5 comments
Closed

offset & consumer groups #199

DEvil0000 opened this issue Feb 13, 2015 · 5 comments

Comments

@DEvil0000
Copy link
Contributor

a consumer offset should be stored per topic/partition/consumer group...
as long as broker based offset is not working correct #192 and zookeeper is not integrated #4 it would still be possible to support this feature (local groups only) with file based offsets.

the filename is now constructed from 1) topic name and 2) partition but it should simply include 3) group id.

workaround (local groups only): add consumer group as folder to the path..

ps: i would suggest something like a consumer config instead of a global config

@edenhill
Copy link
Contributor

Yes, you are absolutely right, it should include the groupid indeed.

To not break existing clients that rely on their offset files not being renamed I suggest the following approach:

  • if group.id is not configured (it defaults to an empty string) the current functionality with no groupid in the filename remains. (topic-partition.offset)
  • if group.id is configured the filename is constructed as: topic-partition-groupid.offset
  • an application that explicitly sets offset.store.path to a file will still use that rather than one of the above alternatives.

Comments?

@DEvil0000
Copy link
Contributor Author

sounds good

@edenhill
Copy link
Contributor

This is fixed now, can you verify on your end aswell?
Thanks.

@edenhill
Copy link
Contributor

Oh, btw, I added group.id to the topic configuration, which overrides the global group.id configuration.

@DEvil0000
Copy link
Contributor Author

works nice - thx for the fast implementation

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