Skip to content
This repository was archived by the owner on Mar 24, 2021. It is now read-only.
This repository was archived by the owner on Mar 24, 2021. It is now read-only.

Deadlock when using reset_offset #253

@zsimpson

Description

@zsimpson

In simpleconsumer I was passing a list of all partitions to reset. Sometimes (often but not always) it would lock up. Adding traces I found that the lock up was at the line that reads:

if partition.fetch_lock.acquire(True):

In the reset_offsets() function.

I changed my code to call the reset_offsets function multiple times, once for each partition. I don't know if this just slows it down enough or what exactly, but it made the deadlock disappear.

My reproduction case is in a somewhat complex environment so I'm unable to provide a simple repro case, but if you'd like me to add traces or other debugging I'd be happy to do so.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions