CRZbulabula opened a new pull request, #9306: URL: https://github.com/apache/iotdb/pull/9306
The management of cluster DatabaseSchemas still have some concurrency control problems. This PR will improve the following problems: 1. Distinguish the Database management of ClusterSchemaManager and PartitionManager: the ClusterSchemaManager will focus on the validity of DatabaseSchema while the PartitionManager will focus on the existence of Database. More detaild, the ClusterSchemaManager provides interface `isDatabaseNameValid` to check whether a DatabaseName is already exists or is a prefix of another Database. And the PartitionManager provides interface `isDatabaseExist` to check whether a Database is deleted or pre-deleted. 2. Fix some interface bugs in ClusterSchemaManager and PartitionManager: these interface will return immediatly as long as a Database doens't exist. However, it's better to continue the process and print a warn log. 3. Improve log in DeleteDatabaseProcedure: the DeleteDatabaseProcedure now will print a info log when deletion success. 4. Fix invalidate cache bug: the invalidate cache process should invalidate PartitionCache before SchemaCache. -- 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]
