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

Remove check for ora2pg depedency from guardrails in case of live migration in oracle and mysql #2256

Merged
merged 4 commits into from
Feb 3, 2025

Conversation

ShivanshGahlot
Copy link
Collaborator

Describe the changes in this pull request

Removed ora2pg dependency check in case of live migration in oracle and mysql
#2102

Describe if there are any user-facing changes

Nope. Only that user wont be prompted that ora2pg is missing in case of live migration.

How was this pull request tested?

Manually

Does your PR have changes that can cause upgrade issues?

Component Breaking changes?
MetaDB No
Name registry json No
Data File Descriptor Json No
Export Snapshot Status Json No
Import Data State No
Export Status Json No
Data .sql files of tables No
Export and import data queue No
Schema Dump No
AssessmentDB No
Sizing DB No
Migration Assessment Report Json No
Callhome Json No
YugabyteD Tables No
TargetDB Metadata Tables No

Copy link
Collaborator

@makalaaneesh makalaaneesh left a comment

Choose a reason for hiding this comment

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

LGTM with a nit

// Issue Link: https://github.com/yugabyte/yb-voyager/issues/2102
missingTools = utils.CheckTools("ora2pg")
// In case if it is not a live migration, then we need to check for ora2pg
if !changeStreamingIsEnabled(exportType) && !useDebezium {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: IMO, it's more readable to have !(changeStreamingIsEnabled(exportType) || useDebezium) . i.e. you can read it as if not (live migration OR offline with debezium)

Same for oracle case.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please test this manually. we don't have test-cases around this.

Copy link
Collaborator

@sanyamsinghal sanyamsinghal left a comment

Choose a reason for hiding this comment

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

LGTM.
Nit: PR description/final-commit should be - "Remove check for ora2pg depedency from guardrails...."

@ShivanshGahlot ShivanshGahlot changed the title Removed ora2pg dependency in case of live migration in oracle and mysql Remove check for ora2pg depedency from guardrails in case of live migration in oracle and mysql Jan 31, 2025
@ShivanshGahlot ShivanshGahlot force-pushed the shivansh/remove-ora2pg-dependency branch from 54ee9a7 to 5b19c38 Compare February 3, 2025 11:23
@ShivanshGahlot ShivanshGahlot merged commit 6c57b1d into main Feb 3, 2025
67 checks passed
@ShivanshGahlot ShivanshGahlot deleted the shivansh/remove-ora2pg-dependency branch February 3, 2025 12:55
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.

3 participants