From 2549928f8d8af3a1aed97f37a0394f61d54b2307 Mon Sep 17 00:00:00 2001 From: liuyang Date: Thu, 14 Dec 2023 11:18:57 +0800 Subject: [PATCH] fix fd leak when closing KyuubiSession but OperationLog not initialized --- .../scala/org/apache/kyuubi/operation/log/OperationLog.scala | 2 -- 1 file changed, 2 deletions(-) diff --git a/kyuubi-common/src/main/scala/org/apache/kyuubi/operation/log/OperationLog.scala b/kyuubi-common/src/main/scala/org/apache/kyuubi/operation/log/OperationLog.scala index 9ee5e8a1878..b3bd46d35a4 100644 --- a/kyuubi-common/src/main/scala/org/apache/kyuubi/operation/log/OperationLog.scala +++ b/kyuubi-common/src/main/scala/org/apache/kyuubi/operation/log/OperationLog.scala @@ -232,8 +232,6 @@ class OperationLog(path: Path) { } def close(): Unit = synchronized { - if (!initialized) return - closeExtraReaders() trySafely {