This is an automated email from the ASF dual-hosted git repository. rong pushed a commit to branch arraypool-log-print-0.12 in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 9f43c5048dc3715615ea78ad0f6609a125f86419 Author: Steve Yurong Su <[email protected]> AuthorDate: Wed Aug 18 12:30:16 2021 +0800 PrimitiveArrayManager: reduce log of array deque size update & add limitUpdateThreshold update log --- .../java/org/apache/iotdb/db/rescon/PrimitiveArrayManager.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 76d2128..e595cfc 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 @@ -167,7 +167,7 @@ public class PrimitiveArrayManager { int newLimit = (int) (limitBase * ratios[i]); LIMITS[i] = newLimit; - if (LOGGER.isInfoEnabled()) { + if (LOGGER.isInfoEnabled() && oldLimit != newLimit) { LOGGER.info( "limit of {} array deque size updated: {} -> {}", TSDataType.deserialize((byte) i).name(), @@ -176,11 +176,16 @@ public class PrimitiveArrayManager { } } + long oldLimitUpdateThreshold = limitUpdateThreshold; // limitUpdateThreshold = ∑(LIMITS[i]) limitUpdateThreshold = 0; for (int limit : LIMITS) { limitUpdateThreshold += limit; } + LOGGER.info( + "limitUpdateThreshold of PrimitiveArrayManager updated: {} -> {}", + oldLimitUpdateThreshold, + limitUpdateThreshold); for (AtomicLong allocationRequestCount : ALLOCATION_REQUEST_COUNTS) { allocationRequestCount.set(0);
