Skip to content

Narrow the scope of DDR checking based on the command#335

Merged
michael-richey merged 1 commit intomainfrom
michael.richey/tweak-ddr-checking
Mar 21, 2025
Merged

Narrow the scope of DDR checking based on the command#335
michael-richey merged 1 commit intomainfrom
michael.richey/tweak-ddr-checking

Conversation

@michael-richey
Copy link
Copy Markdown
Collaborator

What does this PR do?

Addressing a component of issue 324. DDR checking now checks source or destination based on the command.

Description of the Change

If the user is running the sync command we should only check the DDR status of the destination.
If the user is running the import command we should only check the DDR status of the destination.

Alternate Designs

Defaulting DDR to false - This idea is rejected because running import from a source (or sync to a destination) that is having a disaster could lead to corrupted or bad data. It's import to check for a disaster first, during a disaster sync-cli may not be to connect at all, so over riding this dangerous condition needs to be the default.

Possible Drawbacks

Users that are only using sync-cli for a single migration or using it as a backup will have have to pass the extra flag.

@michael-richey michael-richey marked this pull request as ready for review March 20, 2025 19:06
@michael-richey michael-richey requested a review from a team as a code owner March 20, 2025 19:06
Copy link
Copy Markdown

@shuheiktgw shuheiktgw left a comment

Choose a reason for hiding this comment

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

This looks great to me, thanks! 🙂

@michael-richey michael-richey merged commit 789157d into main Mar 21, 2025
17 checks passed
@michael-richey michael-richey deleted the michael.richey/tweak-ddr-checking branch March 21, 2025 13:20
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.

3 participants