Skip to content

Fix multi level sg creation bug#5851

Merged
qiaojialin merged 3 commits intoapache:masterfrom
MarcosZyk:fix_sg_level_bug
May 10, 2022
Merged

Fix multi level sg creation bug#5851
qiaojialin merged 3 commits intoapache:masterfrom
MarcosZyk:fix_sg_level_bug

Conversation

@MarcosZyk
Copy link
Copy Markdown
Contributor

@MarcosZyk MarcosZyk commented May 10, 2022

Description

Cause

The storage group info management of dataNode went wrong when createSchemaRegion. The localStorageGroupSchemaManager go through the auto create sg logic with normal path rather than specified storage group path. It means when the target storage group path is root.a.sg, the sg created by ensureStorageGroup method is root.a since the default sg level is 1.

Solution

rewrite the logic of localStorageGroupSchemaManager.ensureStorageGroup
rename it to ensureStorageGroupByStorageGroupPath

Result screenshot

image

@qiaojialin qiaojialin merged commit 0f1cd23 into apache:master May 10, 2022
@MarcosZyk MarcosZyk deleted the fix_sg_level_bug branch May 19, 2022 01:32
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