From 772b162e4a610918403e45fbb3ad358dd6a01ad3 Mon Sep 17 00:00:00 2001 From: Yan Zhao Date: Tue, 9 Jul 2024 09:44:45 +0800 Subject: [PATCH] Fix the completionObjects leak problem. (#4285) --- .../java/org/apache/bookkeeper/proto/PerChannelBookieClient.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java index 1eefda45e0e..a77be0ca3fe 100644 --- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java +++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java @@ -1206,6 +1206,7 @@ private void writeAndFlush(final Channel channel, } } else { nettyOpLogger.registerFailedEvent(MathUtils.elapsedNanos(startTime), TimeUnit.NANOSECONDS); + errorOut(key); } } finally { if (cleanupActionAfterWrite != null) {