Closed horkhe closed 9 years ago
@wvanbergen do you have any comments on this PR?
sorry, I missed this. Will look at it tonight.
@wvanbergen thanks!
Just on question, but this looks good. Did you test it with the wvanbergen/kafka
consumer by any chance?
We evaluated wvanbergen/kafka, but it did not meet our requirements so we could not use it. There two main issues (those are issues just for us, for any other user they may be not issues at all) that did not let us use it:
subscription
list. It thinks that every member of the group consumes every topic which is not true.OK. I will merge this once I have tested this with wvanbergen/kafka to make sure it's compatible.
I have reverted the re-registration logic and squashed my changes.
@wvanbergen have you been able to give it a try?
Looks like it's working!
Looks like you didn't run go fmt
but I fixed that on master
Oops, sorry about that.
EDIT: Ever since this proposal I have been browsing the Kafka documentation and source code trying to understand if the allow resubscription. And I have not found explicit mentioning of that anywhere. What I did found is a list of watches Kafka consumer sets up. To be notified of subscription changes the consumer has to set data watches on all group instances, but it does not do that. So to make the updated subscription visible a client has to deregister and register again.
So the PR title was changed to Make claiming the same partition twice not an error and the content was updated.