Caideyipi opened a new pull request, #18312: URL: https://github.com/apache/iotdb/pull/18312
Backport #18308 to dev/1.3, cherry-picked from commit 5adcc2c5f888b3fb6677e71d01dabda2a88a457b. ConfigNode now rejects database paths containing empty nodes before checking database conflicts, preventing invalid paths such as an empty name, root., root..database, or root.database. from entering metadata. Adaptations for dev/1.3: - dev/1.3 exposes the single-tree isDatabaseNameValid(String) API, so the validation reuses this branch's existing PartialPath and mTree flow. - The regression test is adapted to the one-argument API; the table-model-specific valid-name check from master is not applicable on this branch. Tests: - mvn spotless:apply -pl iotdb-core/confignode - mvn -pl iotdb-core/confignode -Dtest=ClusterSchemaInfoTest#testDatabasePathWithEmptyNodeIsInvalid test Both commands passed, including ConfigNode compilation, Checkstyle, and Spotless checks. -- 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]
