Skip to content

fix(striped_backups): changed logic to get all striped backups#62

Merged
Alex Irion (alexirion10) merged 19 commits intofactset:masterfrom
AdityaNPL:fix/striped_backups
Mar 11, 2021
Merged

fix(striped_backups): changed logic to get all striped backups#62
Alex Irion (alexirion10) merged 19 commits intofactset:masterfrom
AdityaNPL:fix/striped_backups

Conversation

@AdityaNPL
Copy link
Copy Markdown
Contributor

@AdityaNPL Aditya Niraula (AdityaNPL) commented Mar 1, 2021

Sometimes backups are split into multiple files (called striped backup), we need all of them for the restore process.
ref: https://www.sqlservercentral.com/articles/getting-a-list-of-the-striped-backup-files

Comment thread src/BackupChain.cs Outdated
@AdityaNPL Aditya Niraula (AdityaNPL) changed the title [WIP] fix(striped_backups): changed logic to get all striped backups fix(striped_backups): changed logic to get all striped backups Mar 1, 2021
@AdityaNPL Aditya Niraula (AdityaNPL) marked this pull request as ready for review March 1, 2021 16:29
Copy link
Copy Markdown
Contributor

@alexirion10 Alex Irion (alexirion10) left a comment

Choose a reason for hiding this comment

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

I think the logic in here is right... but this needs to be tested more thouroughly

Comment thread src/BackupChain.cs Outdated
Comment thread src/BackupChain.cs Outdated
Comment thread src/BackupChain.cs Outdated
@AdityaNPL
Copy link
Copy Markdown
Contributor Author

Sure, I have tested locally with a MSSQL instance that has striped backups - worked correctly

Will also try to add some negative tests by adding duplicates and diff/full backups with diff LSNs

Comment thread src/BackupChain.cs Outdated
Comment thread tests/AgDatabaseMove.Unit/BackupOrder.cs
Comment thread tests/AgDatabaseMove.Unit/BackupOrder.cs Outdated
Comment thread tests/AgDatabaseMove.Unit/BackupOrder.cs Outdated
Comment thread tests/AgDatabaseMove.Unit/BackupOrder.cs Outdated
Comment thread tests/AgDatabaseMove.Unit/BackupOrder.cs Outdated
Copy link
Copy Markdown
Contributor

@alexirion10 Alex Irion (alexirion10) left a comment

Choose a reason for hiding this comment

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

two small fixes, then good to go

Comment thread tests/AgDatabaseMove.Unit/BackupOrder.cs Outdated
Comment thread src/BackupChain.cs Outdated
@alexirion10 Alex Irion (alexirion10) merged commit babf28a into factset:master Mar 11, 2021
@AdityaNPL Aditya Niraula (AdityaNPL) deleted the fix/striped_backups branch March 18, 2021 14:22
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.

2 participants