MarcosZyk commented on code in PR #9626:
URL: https://github.com/apache/iotdb/pull/9626#discussion_r1168603098
##########
server/src/main/java/org/apache/iotdb/db/metadata/rescon/DataNodeSchemaQuotaManager.java:
##########
@@ -40,6 +44,7 @@ public void updateRemain(long totalCount) {
}
public void checkMeasurementLevel(int acquireNumber) throws
SchemaQuotaExceededException {
+ logger.info("checkMeasurementLevel {},{},{}", level.name(), limit,
remain.get());
Review Comment:
It seems this log will be record each there's timeseries registration. Try
reduce the log frequency.
##########
server/src/main/java/org/apache/iotdb/db/metadata/schemaregion/SchemaRegionSchemaFileImpl.java:
##########
@@ -790,6 +789,18 @@ public Map<Integer, MetadataException>
checkMeasurementExistence(
return mtree.checkMeasurementExistence(devicePath, measurementList,
aliasList);
}
+ @Override
+ public void checkSchemaQuota(PartialPath devicePath, int timeSeriesNum)
+ throws SchemaQuotaExceededException {
+ if
(schemaQuotaManager.getLevel().equals(ClusterSchemaQuotaLevel.TIMESERIES)) {
+ schemaQuotaManager.checkMeasurementLevel(timeSeriesNum);
+ } else if
(schemaQuotaManager.getLevel().equals(ClusterSchemaQuotaLevel.DEVICE)) {
+ if (!mtree.checkDeviceNodeExists(devicePath)) {
+ schemaQuotaManager.checkDeviceLevel();
Review Comment:
Is there any statistic variable representing device num that can be used in
this judgement?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]