Skip to content

Commit 24bf08a

Browse files
authored
Load: Switched the logger level to debug when cache memory temporarily exceeds the max size (apache#16289)
* fix * fix * comment
1 parent b1ab9b3 commit 24bf08a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/memory/LoadTsFileDataCacheMemoryBlock.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ public boolean hasEnoughMemory(long memoryTobeAddedInBytes) {
5959

6060
@Override
6161
public synchronized void addMemoryUsage(long memoryInBytes) {
62+
// May temporarily exceed the max size
6263
if (memoryUsageInBytes.addAndGet(memoryInBytes) > limitedMemorySizeInBytes.get()) {
63-
LOGGER.warn("{} has exceed total memory size", this);
64+
LOGGER.debug("{} has exceed total memory size", this);
6465
}
6566
}
6667

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/memory/LoadTsFileMemoryBlock.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ public synchronized boolean hasEnoughMemory(long memoryTobeAddedInBytes) {
5050

5151
@Override
5252
public synchronized void addMemoryUsage(long memoryInBytes) {
53+
// May temporarily exceed the max size
5354
if (memoryUsageInBytes.addAndGet(memoryInBytes) > totalMemorySizeInBytes) {
54-
LOGGER.warn("{} has exceed total memory size", this);
55+
LOGGER.debug("{} has exceed total memory size", this);
5556
}
5657

5758
MetricService.getInstance()

0 commit comments

Comments
 (0)