From 85b4d2564fb4f9f9edbe12f20b1c8aff8c6d002e Mon Sep 17 00:00:00 2001 From: spricoder Date: Mon, 8 Jan 2024 15:30:02 +0800 Subject: [PATCH] cp from iotdb pr11835 --- .../java/org/apache/tsfile/write/writer/TsFileIOWriter.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/tsfile/src/main/java/org/apache/tsfile/write/writer/TsFileIOWriter.java b/tsfile/src/main/java/org/apache/tsfile/write/writer/TsFileIOWriter.java index 720b28274..2427e7e8d 100644 --- a/tsfile/src/main/java/org/apache/tsfile/write/writer/TsFileIOWriter.java +++ b/tsfile/src/main/java/org/apache/tsfile/write/writer/TsFileIOWriter.java @@ -321,7 +321,6 @@ public void endCurrentChunk() { */ @SuppressWarnings("squid:S3776") // Suppress high Cognitive Complexity warning public void endFile() throws IOException { - long startTime = System.currentTimeMillis(); checkInMemoryPathCount(); readChunkMetadataAndConstructIndexTree(); @@ -348,8 +347,6 @@ public void endFile() throws IOException { } } canWrite = false; - long cost = System.currentTimeMillis() - startTime; - logger.debug("Time for flushing metadata is {} ms", cost); } private void checkInMemoryPathCount() {