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

compatible with native java/scala consumer id registration format #18

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

funkygao
Copy link

@funkygao funkygao commented Dec 3, 2015

in java/scala kafka implementation, the Timestamp of a consumer
is string instead of int64

@wvanbergen
Copy link
Owner

What version of the Scala implementation are you basing this on? The schema I am using was definitely the schema around 0.8.2.

@wvanbergen
Copy link
Owner

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?

Copy link
Owner

@wvanbergen wvanbergen left a 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("")
}
Copy link
Owner

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)
}
}
Copy link
Owner

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()
Copy link
Owner

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?

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

Successfully merging this pull request may close these issues.

2 participants