Skip to content

Fix #1985: fix consumer deadlock when heartbeat thread request timeout#2064

Merged
dpkp merged 1 commit intodpkp:masterfrom
huangcuiyang:issue-1985
Sep 7, 2020
Merged

Fix #1985: fix consumer deadlock when heartbeat thread request timeout#2064
dpkp merged 1 commit intodpkp:masterfrom
huangcuiyang:issue-1985

Conversation

@huangcuiyang
Copy link
Copy Markdown
Contributor

@huangcuiyang huangcuiyang commented Jun 9, 2020

see issue: #1985


This change is Reviewable

@dpkp
Copy link
Copy Markdown
Owner

dpkp commented Jun 9, 2020

This approach is different from the 2 that I suggested in the ticket. Can you write up why you think this is the best approach?

@huangcuiyang
Copy link
Copy Markdown
Contributor Author

huangcuiyang commented Jun 9, 2020

I also think that the repair method you suggested is more thorough and better, and my method is relatively simple, in order to quickly repair production problems.

My idea for repair is thread always first get client._lock, then get coordinator._lock. When the heartbeat thread uses 2 keys to call client.poll to read data, the performance of the main consumer thread is less affected. I have tested the performance.

I hope you can use a better way to solve the design problem of multi-threaded shared client.poll

@mjattiot
Copy link
Copy Markdown

mjattiot commented Sep 9, 2020

quick question @dpkp : do you plan anytime soon a 2.0.2 release that could include this PR ?

@vsrini-ns
Copy link
Copy Markdown

Is there any plan to cut a release soon with this patch included?

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.

4 participants