-
Notifications
You must be signed in to change notification settings - Fork 48
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
compatible with native java/scala consumer id registration format #18
base: master
Are you sure you want to change the base?
Conversation
in java/scala kafka implementation, the Timestamp of a consumer is string instead of int64
What version of the Scala implementation are you basing this on? The schema I am using was definitely the schema around 0.8.2. |
Also, it looks like Travis didn't run CI on this pull request. This issue should be fixed now. Can you rebase this PR and try again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of questions, but if you address them I will merge.
@@ -151,7 +151,11 @@ func (cg *Consumergroup) WatchInstances() (ConsumergroupInstanceList, <-chan zk. | |||
// NewInstance instantiates a new ConsumergroupInstance inside this consumer group, | |||
// using a newly generated ID. | |||
func (cg *Consumergroup) NewInstance() *ConsumergroupInstance { | |||
id, err := generateConsumerInstanceID() | |||
return cg.NewInstanceRealIp("") | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this method be deprecated now?
assert.Equal(t, nil, err) | ||
t.Logf("%+v", id) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this test?
|
||
func TestGenerateConsumerInstanceID(t *testing.T) { | ||
for i := 0; i < 5; i++ { | ||
id, err := generateConsumerInstanceID() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this function require an argument now?
in java/scala kafka implementation, the Timestamp of a consumer
is string instead of int64