Skip to content

Fix ObjectDisposedException in Kafka listeners #2380

@lyall-sc

Description

@lyall-sc

Describe the bug
We are seeing ObjectDisposedException in the Kafka listener when our pods shutdown/rebalance. Any in-flight messages are not waited on which appears to be causing the exception.

To Reproduce
Ensure in-flight messages are being processed, then kill the host.

Expected behavior
The consume loop is cancelled, the current message is processed and then the host shuts down cleanly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions