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

Process results of a single fetch request in parallel #386

Closed
wants to merge 1 commit into from

Conversation

eapache
Copy link
Contributor

@eapache eapache commented Mar 23, 2015

And abandon partitions that take too long (e.g. because the client user-space reading goroutine is stuck).

@wvanbergen this is a draft attempt at fixing #325 but it kind of sucks. The bulk of the diff is just moving the handleResponse method from being on the brokerConsumer to being on the partitionConsumer (split out into #387)

c1, err := master.ConsumePartition("my_topic", 1, 0)
if err != nil {
t.Fatal(err)
}

time.Sleep(50 * time.Millisecond)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😢

@eapache eapache force-pushed the process-partitions-in-parallel branch from 77ac8a6 to aadea7d Compare March 23, 2015 19:35
And abandon partitions that take too long (e.g. because the client is stuck).
@eapache eapache force-pushed the process-partitions-in-parallel branch from aadea7d to 8196ab1 Compare March 23, 2015 19:53
@eapache
Copy link
Contributor Author

eapache commented Mar 24, 2015

I think I have a better idea (we'll see once I've actually written it :P) but this was enlightening regardless.

@eapache eapache closed this Mar 24, 2015
@eapache eapache deleted the process-partitions-in-parallel branch March 24, 2015 02:17
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.

1 participant