Skip to content

Comments

HDDS-7354. SchemaV3 blockData not deleted in table#3860

Merged
JacksonYao287 merged 2 commits intoapache:masterfrom
Xushaohong:HDDS-7354
Oct 20, 2022
Merged

HDDS-7354. SchemaV3 blockData not deleted in table#3860
JacksonYao287 merged 2 commits intoapache:masterfrom
Xushaohong:HDDS-7354

Conversation

@Xushaohong
Copy link
Contributor

What changes were proposed in this pull request?

If using SchemaV3, the blocks are deleted on disk but the blockData is not deleted accordingly due to the misuse of the key in deleteViaTransactionStore.
Keep using the unified key format as V2 and V3 both delete blocks via TXN.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-7354

How was this patch tested?

UT

Copy link
Member

@kaijchen kaijchen left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @Xushaohong for the fix. Pending CI.

@kaijchen kaijchen requested a review from captainzmc October 19, 2022 11:58
@kaijchen
Copy link
Member

@captainzmc Please cherry-pick this to 1.3.0 release branch when it's merged.

Copy link
Member

@captainzmc captainzmc left a comment

Choose a reason for hiding this comment

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

+1 the change looks good. Let's wait for CI to finish.

@JacksonYao287
Copy link
Contributor

thanks @kaijchen @captainzmc for the review , and @Xushaohong for this patch! i have committed it to master branch

@JacksonYao287 JacksonYao287 merged commit ff6d15f into apache:master Oct 20, 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.

4 participants