You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ro...@apache.org on 2021/08/18 05:21:32 UTC
[iotdb] branch master updated: PrimitiveArrayManager: reduce log of
array deque size update & add limitUpdateThreshold update log (#3778)
This is an automated email from the ASF dual-hosted git repository.
rong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 120678a PrimitiveArrayManager: reduce log of array deque size update & add limitUpdateThreshold update log (#3778)
120678a is described below
commit 120678a960a709f3063dbb3bc09a4c0254bd7b26
Author: Steve Yurong Su (宇荣) <ro...@apache.org>
AuthorDate: Wed Aug 18 00:21:06 2021 -0500
PrimitiveArrayManager: reduce log of array deque size update & add limitUpdateThreshold update log (#3778)
---
.../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 e829c1b..54704be 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
@@ -179,7 +179,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(),
@@ -188,11 +188,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);