-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ditch reconnect logic in favor of rebuilding dropped connections
We've narrowed down a memory leak issue to this driver, and this represents a rather blunt solution to the problem. My best guess is that it's possible for the Kafka connection to end up in a disconnected state without any active reconnects (I can't reason how, but it doesn't seem farfetched). In that case, sending data through the connection appears to simply grow a buffer without limit. This circumvents that possibility by simple re-creating the connection object whenever a drop occurs.
- Loading branch information
Showing
2 changed files
with
11 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters