Skip to content

Conversation

@iyear
Copy link
Contributor

@iyear iyear commented Jan 4, 2023

Signed-off-by: Junyu Liu [email protected]

close #7528
close #7915

It seems that only native is remaining.

@k8s-ci-robot
Copy link

Hi @iyear. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@iyear iyear changed the title Refactor native snapshotter metastore transaction Refactor snapshotters metastore transaction Jan 4, 2023
@dcantah
Copy link
Member

dcantah commented Jan 4, 2023

It seems that only native is remaining.

There's the Windows and lcow snapshotters as well

Copy link
Member

@dcantah dcantah left a comment

Choose a reason for hiding this comment

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

Thanks for this, I like how these are turning out

}
usage = snapshots.Usage(du)

if info.Kind == snapshots.KindActive {
Copy link
Member

Choose a reason for hiding this comment

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

Possible optimization after this PR, move the fs.DiskUsage call outside the transaction, it can be really slow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a small bug, I fixed it directly...

@iyear
Copy link
Contributor Author

iyear commented Jan 5, 2023

I'll commit the rest of the refactoring later, goland's usage search automatically ignores non-native platform go files, so I didn't search for windows-related snapshotters.

@dcantah
Copy link
Member

dcantah commented Jan 5, 2023

No worries!

@iyear
Copy link
Contributor Author

iyear commented Jan 5, 2023

The remaining snapshotters have been refactored.

@dcantah dcantah requested review from dcantah and dmcgowan January 5, 2023 20:30
@dcantah
Copy link
Member

dcantah commented Jan 5, 2023

Re-requested/dismissed our reviews as you ported two other snapshotters in here now. Will try and get to this this week!

@fuweid fuweid added the platform/windows Windows label Jan 6, 2023
Copy link
Member

@dcantah dcantah left a comment

Choose a reason for hiding this comment

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

Thanks a ton, LGTM

@fuweid fuweid merged commit fd1a4a2 into containerd:main Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Snapshotters: Move all to metadata.WithTransaction Refactor metastore transaction

5 participants