Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(snapshot): get lba from snapshot which is ancestor of current blob #38

Merged

Conversation

hrudaya21
Copy link

@hrudaya21 hrudaya21 commented Dec 14, 2023

Currently when data is copied form the healthy replica to build a new replica, it only takes allocated blocks from current replica. It doesn't consider the snapshot data of the healthy replica. Due to copy on write, snapshot owns some data of the helathy replica which doesn't get copied to the new replica.
With this fix, while reading lba for the replica, it consider all the snapshots associated with the replica to get the data and copied to the newly created replica.

@hrudaya21 hrudaya21 marked this pull request as draft December 14, 2023 05:52
@hrudaya21 hrudaya21 force-pushed the check_cluster_alloc_from_blob_ancestor branch 4 times, most recently from 28320f7 to cde82b3 Compare December 14, 2023 06:10
@hrudaya21 hrudaya21 marked this pull request as ready for review December 14, 2023 12:48
@hrudaya21 hrudaya21 force-pushed the check_cluster_alloc_from_blob_ancestor branch 2 times, most recently from 5deefa4 to f538378 Compare December 18, 2023 04:57
lib/blob/blobstore.c Show resolved Hide resolved
lib/blob/blobstore.c Outdated Show resolved Hide resolved
lib/blob/blobstore.c Outdated Show resolved Hide resolved
lib/blob/blobstore.c Outdated Show resolved Hide resolved
lib/blob/blobstore.c Show resolved Hide resolved
@hrudaya21 hrudaya21 force-pushed the check_cluster_alloc_from_blob_ancestor branch 2 times, most recently from 7437796 to be46585 Compare December 21, 2023 17:39
@hrudaya21 hrudaya21 force-pushed the check_cluster_alloc_from_blob_ancestor branch from be46585 to f04a5f6 Compare December 22, 2023 09:30
lib/blob/blobstore.c Outdated Show resolved Hide resolved
@hrudaya21 hrudaya21 force-pushed the check_cluster_alloc_from_blob_ancestor branch from f04a5f6 to 05ab36e Compare January 5, 2024 05:22
lib/blob/blobstore.c Outdated Show resolved Hide resolved
@hrudaya21 hrudaya21 force-pushed the check_cluster_alloc_from_blob_ancestor branch from 05ab36e to fef3a8a Compare January 5, 2024 05:41
@hrudaya21 hrudaya21 force-pushed the check_cluster_alloc_from_blob_ancestor branch from fef3a8a to ab9f764 Compare January 5, 2024 05:44
@pchandra19 pchandra19 merged commit 697eb8b into v23.05.x-mayastor Jan 5, 2024
2 checks passed
tiagolobocastro pushed a commit that referenced this pull request Apr 22, 2024
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