This is an automated email from the ASF dual-hosted git repository.
Caideyipi pushed a commit to branch quota-fix
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/quota-fix by this push:
new e6043c2011b fix
e6043c2011b is described below
commit e6043c2011bee7337de24f52200ee22ce34ef56a
Author: Caideyipi <[email protected]>
AuthorDate: Fri Apr 24 11:06:11 2026 +0800
fix
---
.../org/apache/iotdb/db/schemaengine/SchemaEngine.java | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/SchemaEngine.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/SchemaEngine.java
index dafcaa0d3b0..ddd90d29b40 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/SchemaEngine.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/SchemaEngine.java
@@ -25,6 +25,7 @@ import
org.apache.iotdb.commons.concurrent.threadpool.ScheduledExecutorUtil;
import org.apache.iotdb.commons.conf.CommonDescriptor;
import org.apache.iotdb.commons.consensus.SchemaRegionId;
import org.apache.iotdb.commons.exception.MetadataException;
+import org.apache.iotdb.commons.pipe.config.constant.SystemConstant;
import org.apache.iotdb.commons.schema.table.TsTable;
import org.apache.iotdb.commons.utils.FileUtils;
import org.apache.iotdb.commons.utils.PathUtils;
@@ -387,15 +388,21 @@ public class SchemaEngine {
.filter(
entry ->
schemaIds.contains(entry.getKey().getId())
- &&
SchemaRegionConsensusImpl.getInstance().isLeader(entry.getKey()))
+ &&
SchemaRegionConsensusImpl.getInstance().isLeader(entry.getKey())
+ &&
!entry.getValue().getDatabaseFullPath().equals(SystemConstant.AUDIT_DATABASE)
+ && !entry
+ .getValue()
+ .getDatabaseFullPath()
+ .equals(SystemConstant.SYSTEM_DATABASE))
.forEach(
entry ->
- timeSeriesNum.put(entry.getKey().getId(),
getTimeSeriesNumber(entry.getValue())));
+ timeSeriesNum.put(
+ entry.getKey().getId(),
getTimeSeriesNumber4Quota(entry.getValue())));
return timeSeriesNum;
}
// not including view number
- private long getTimeSeriesNumber(ISchemaRegion schemaRegion) {
+ private long getTimeSeriesNumber4Quota(final ISchemaRegion schemaRegion) {
return schemaRegion.getSchemaRegionStatistics().getSeriesNumber(false)
+
schemaRegion.getSchemaRegionStatistics().getTable2DevicesNumMap().entrySet().stream()
.map(
@@ -465,7 +472,7 @@ public class SchemaEngine {
tmp.put(
consensusGroupId.getId(),
Optional.ofNullable(schemaRegionMap.get(consensusGroupId))
- .map(this::getTimeSeriesNumber)
+ .map(this::getTimeSeriesNumber4Quota)
.orElse(0L)));
}
}