remove all timer in wal
diff --git a/server/src/main/java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java b/server/src/main/java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java index f2980a4..e982c77 100644 --- a/server/src/main/java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java +++ b/server/src/main/java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java
@@ -273,7 +273,6 @@ } private void flushBuffer(ILogWriter writer) { - long start = System.nanoTime(); try { writer.write(logBufferFlushing); } catch (ClosedChannelException e) { @@ -290,14 +289,9 @@ logBufferFlushing = null; switchBufferCondition.notifyAll(); } - long elapse = System.nanoTime() - start; - if (elapse > 3000000000L) { - logger.error("[wal] {} Flushing -> idle cost: {}ms", this.hashCode(), elapse / 1000000); - } } private void switchBufferWorkingToFlushing() throws InterruptedException { - long start = System.nanoTime(); synchronized (switchBufferCondition) { while (logBufferFlushing != null && !deleted.get()) { switchBufferCondition.wait(100); @@ -307,10 +301,6 @@ logBufferWorking.clear(); logBufferIdle = null; } - long elapse = System.nanoTime() - start; - if (elapse > 3000000000L) { - logger.error("[wal] {} Working -> Flushing cost: {}ms", this.hashCode(), elapse / 1000000); - } } private ILogWriter getCurrentFileWriter() throws FileNotFoundException {