Caideyipi opened a new pull request, #18308: URL: https://github.com/apache/iotdb/pull/18308
## Description ConfigNode now validates every node in a database path before checking database conflicts. If any node is an empty string, the request is rejected with `ILLEGAL_PATH` instead of allowing an invalid path such as `root.` or an empty table-model database name into ConfigNode metadata. The validation stays in `ClusterSchemaInfo.isDatabaseNameValid`, so all database creation paths that go through `ClusterSchemaManager`, including pipe-generated plans, share the same guard. Unit coverage includes valid tree/table database names and empty nodes at the database, middle, and trailing levels. ## Tests - `mvn spotless:apply -pl iotdb-core/confignode` - `mvn test -pl iotdb-core/confignode -Dtest=ClusterSchemaInfoTest` - `mvn test-compile -pl iotdb-core/confignode -P with-zh-locale -DskipTests` <hr> This PR has: - [x] been self-reviewed. - [x] added unit tests or modified existing tests to cover new code paths. <hr> ##### Key changed/added classes - `ClusterSchemaInfo` - `ClusterSchemaInfoTest` -- 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]
