Skip to content

[To rel/1.0] [IOTDB-5059] Remove redundant database check in SchemaEngine#8236

Merged
MarcosZyk merged 2 commits intoapache:rel/1.0from
MarcosZyk:refactor_sg_check
Nov 29, 2022
Merged

[To rel/1.0] [IOTDB-5059] Remove redundant database check in SchemaEngine#8236
MarcosZyk merged 2 commits intoapache:rel/1.0from
MarcosZyk:refactor_sg_check

Conversation

@MarcosZyk
Copy link
Contributor

@MarcosZyk MarcosZyk commented Nov 29, 2022

Description

Since the database name has already been checked on configNode when creating database, there's no need to check it again in SchemaEngine. We suppose all the internal requests are legal and SchemaEngine only need to execute them.

The async physical deletion of schemaRegion affects the creation of new region of new database with nested name, e.g. old db is root.udf and new db is root.udf.load, which results in the creation failure of new region and this shall not happen.

@MarcosZyk MarcosZyk changed the base branch from master to rel/1.0 November 29, 2022 03:20
Copy link
Contributor

@bigreybear bigreybear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

@MarcosZyk MarcosZyk merged commit 5f262fb into apache:rel/1.0 Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants