Skip to content

Commit

Permalink
Fix rdkafka consumer hanging when disconnecting (#13144)
Browse files Browse the repository at this point in the history
Calling `consumer.close()` was hanging indefinitely when the
`optimizedRebalance` config was enabled.

The issue is the same as
confluentinc/confluent-kafka-go#767

The `rebalance` method needs to call `consumer.unassign()` when closing.
It was not doing this because `this.consumer` was being set to
`undefined` before disconnecting.
  • Loading branch information
GaryWilber committed Dec 1, 2022
1 parent 0372fe0 commit 8e33bf1
Showing 1 changed file with 475 additions and 470 deletions.

0 comments on commit 8e33bf1

Please sign in to comment.