Skip to content

Commit

Permalink
fix(issues1999): fix Processor.channelContexts memory leak (#2000)
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Han <[email protected]>
  • Loading branch information
superhx authored Sep 9, 2024
1 parent e077118 commit 2b5e703
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/scala/kafka/network/SocketServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,7 @@ private[kafka] class Processor(
val remove = connectionId.equals(e.getValue.request.context.connectionId)
remove
})
channelContexts.remove(connectionId)
// the channel has been closed by the selector but the quotas still need to be updated
connectionQuotas.dec(listenerName, InetAddress.getByName(remoteHost))
} catch {
Expand Down

0 comments on commit 2b5e703

Please sign in to comment.