shuwenwei commented on code in PR #14617:
URL: https://github.com/apache/iotdb/pull/14617#discussion_r2048623711
##########
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/schema/ClusterSchemaManager.java:
##########
@@ -813,6 +816,93 @@ public TGetPathsSetTemplatesResp
getPathsSetTemplate(String templateName, PathPa
}
}
+ public static TSStatus enrichDatabaseSchemaWithDefaultProperties(
+ final TDatabaseSchema databaseSchema) {
+ TSStatus errorResp = null;
+ final boolean isSystemDatabase =
+ databaseSchema.getName().equals(SchemaConstant.SYSTEM_DATABASE);
+
+ if (databaseSchema.getTTL() < 0) {
+ errorResp =
+ new TSStatus(TSStatusCode.DATABASE_CONFIG_ERROR.getStatusCode())
+ .setMessage("Failed to create database. The TTL should be
positive.");
Review Comment:
should be non-negative
--
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]