Skip to content

Conversation

ricab
Copy link
Collaborator

@ricab ricab commented Jan 9, 2024

Stop applying the last snapshot when rolling back a failed snapshot
restore. Instead, apply the intended snapshot only after every other
restore step has succeeded, thereby dispensing with rolling back the
apply step itself (as long as it is itself transactional). Fixes #3362.

Stop applying the last snapshot when rolling back a failed snapshot
restore. Instead, apply the intended snapshot only after every other
restore step has succeeded, thereby dispensing with rolling back the
apply step itself (as long as it is itself transactional). Fixes #3362.
Copy link

codecov bot commented Jan 9, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (d84f8f7) 84.06% compared to head (36584be) 84.06%.

Files Patch % Lines
.../platform/backends/shared/base_virtual_machine.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3363      +/-   ##
==========================================
- Coverage   84.06%   84.06%   -0.01%     
==========================================
  Files         251      251              
  Lines       13793    13792       -1     
==========================================
- Hits        11595    11594       -1     
  Misses       2198     2198              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@townsend2010 townsend2010 left a comment

Choose a reason for hiding this comment

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

Ok, LGTM, thanks!

@townsend2010 townsend2010 added this pull request to the merge queue Jan 12, 2024
Merged via the queue into main with commit 01db61f Jan 12, 2024
@townsend2010 townsend2010 deleted the fix-snapshot-restore-rollback branch January 12, 2024 16:49
townsend2010 pushed a commit that referenced this pull request Jan 31, 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.

[snapshots] Rollback of failed restore wrongly applies last snapshot
2 participants