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

Use a separate thread to get the topic offsets to fixed bug 'Yikes! Ask timed out...' #456

Merged
merged 5 commits into from Jan 22, 2018

Conversation

DavidLiuXh
Copy link

@DavidLiuXh DavidLiuXh commented Dec 11, 2017

Use a separate thread to get the topic offsets

@yahoocla
Copy link

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! 😄

@DavidLiuXh DavidLiuXh changed the title Use a separate thread to get the committed offsets to fixed bug 'Yike… Use a separate thread to get the topic offsets to fixed bug 'Yike… Dec 11, 2017
@DavidLiuXh DavidLiuXh changed the title Use a separate thread to get the topic offsets to fixed bug 'Yike… Use a separate thread to get the topic offsets to fixed bug 'Yikes! Ask timed out...' Dec 11, 2017
@simplesteph
Copy link
Contributor

@patelh I believe this fixes a long time issue. Would be great to have a look at it

@vigneshsenapathy
Copy link

vigneshsenapathy commented Jan 3, 2018

@DavidLiuXh : When will this be merged into master ?

@patelh
Copy link
Collaborator

patelh commented Jan 4, 2018

anyone tried this besides DavidLiuXh?

var broker2TopicPartitionMap: Map[BrokerIdentity, List[(TopicAndPartition, PartitionOffsetRequestInfo)]] = Map()

data.asScala.keys.toIndexedSeq.foreach(topic => {
var optPartitionsWithLeaders : Option[List[(Int, Option[BrokerIdentity])]] = getPartitionLeaders(topic)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add another check here for shutdown. If the list of topics is long, it may take some time to shutdown.

)

broker2TopicPartitionMap.keys.foreach(broker => {
var tpList = broker2TopicPartitionMap(broker)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here, maybe add shutdown check to stop processing on close.

@ghost
Copy link

ghost commented Jan 22, 2018

@patelh - I just built this and it seems to resolve the issue for me. No problems, everything seems to be working as expected

@patelh patelh merged commit 80a0aa7 into yahoo:master Jan 22, 2018
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.

None yet

5 participants