You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/03/03 03:54:13 UTC
[iotdb] 01/01: Change log level of array pool to debug
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch array_pool_log
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit da010564f395996fbe3a1b61a3a5cd3baf149a9e
Author: HTHou <hh...@outlook.com>
AuthorDate: Fri Mar 3 11:53:57 2023 +0800
Change log level of array pool to debug
---
.../org/apache/iotdb/db/rescon/PrimitiveArrayManager.java | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/rescon/PrimitiveArrayManager.java b/server/src/main/java/org/apache/iotdb/db/rescon/PrimitiveArrayManager.java
index de450341cb..d10c00cc06 100644
--- a/server/src/main/java/org/apache/iotdb/db/rescon/PrimitiveArrayManager.java
+++ b/server/src/main/java/org/apache/iotdb/db/rescon/PrimitiveArrayManager.java
@@ -182,8 +182,8 @@ public class PrimitiveArrayManager {
int newLimit = (int) (limitBase * ratios[i]);
LIMITS[i] = newLimit;
- if (LOGGER.isInfoEnabled() && oldLimit != newLimit) {
- LOGGER.info(
+ if (LOGGER.isDebugEnabled() && oldLimit != newLimit) {
+ LOGGER.debug(
"limit of {} array deque size updated: {} -> {}",
TSDataType.deserialize((byte) i).name(),
oldLimit,
@@ -197,10 +197,12 @@ public class PrimitiveArrayManager {
for (int limit : LIMITS) {
limitUpdateThreshold += limit;
}
- LOGGER.info(
- "limitUpdateThreshold of PrimitiveArrayManager updated: {} -> {}",
- oldLimitUpdateThreshold,
- limitUpdateThreshold);
+ if (LOGGER.isDebugEnabled() && oldLimitUpdateThreshold != limitUpdateThreshold) {
+ LOGGER.debug(
+ "limitUpdateThreshold of PrimitiveArrayManager updated: {} -> {}",
+ oldLimitUpdateThreshold,
+ limitUpdateThreshold);
+ }
for (AtomicLong allocationRequestCount : ALLOCATION_REQUEST_COUNTS) {
allocationRequestCount.set(0);