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

LiveMerge: move getVolumeInfo to executeCommand #579

Merged
merged 1 commit into from
Aug 16, 2022

Conversation

mkemel
Copy link
Member

@mkemel mkemel commented Aug 9, 2022

Call to GetVolumeInfo was added to RemoveSnapshotSingleDiskLive
command before performing the steps, in order to check if the
Destination image (or the Top Image) exists on storage. It was added
to the procedure, which is determining the initial merge step during
the first run of performNextOperation.

GetVolumeInfo is a synchronous call, and calling it from
performNextOperation can block the callback thread which may block
other commands from making progress. This change moves the procedure
of setting the initial merge step back to executeCommand(), like it
is in ColdMergeSnapshotSingleDisk command

@mkemel mkemel force-pushed the fix_remove_snapshot_with_merged_image branch from 31d4581 to 14e2efc Compare August 9, 2022 10:55
Call to GetVolumeInfo was added to RemoveSnapshotSingleDiskLive
command before performing the steps, in order to check if the
Destination image (or the Top Image) exists on storage. It was added
to the procedure, which is determining the initial merge step during
the first run of performNextOperation.

GetVolumeInfo is a synchronous call, and calling it from
performNextOperation can block the callback thread which may block
other commands from making progress. This change moves the procedure
of setting the initial merge step back to executeCommand(), like it
is in ColdMergeSnapshotSingleDisk command
@ahadas ahadas force-pushed the fix_remove_snapshot_with_merged_image branch from 14e2efc to b776cd3 Compare August 16, 2022 06:17
@ahadas
Copy link
Member

ahadas commented Aug 16, 2022

/ost

@ahadas ahadas merged commit fb7f1eb into oVirt:master Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants