fs2-kafka
fs2-kafka copied to clipboard
Connections stuck in TIME_WAIT when getting offsetRangeFor.
When using offsetRangeFor
the connections to brokers do not close up properly and are stuck in the "TIME_WAIT" state, this can be seen in netstat. The connections do die out after while.
There are two connections that get stuck like this. One is when we try to find a leader for the given topicId and second one is the actual fetch of the offsetRange.
There may be other instances where the connections do not close up properly. As such we should check every place where we communicate with kafka.