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

Move ALTER TYPE TEXT DDL to CREATE for metadata tables of target db #2383

Merged
merged 3 commits into from
Mar 6, 2025

Conversation

priyanshi-yb
Copy link
Contributor

@priyanshi-yb priyanshi-yb commented Mar 5, 2025

Describe the changes in this pull request

  1. Moved ALTER TYPE TEXT DDL to CREATE for metadata tables of target db fixes https://yugabyte.atlassian.net/browse/DB-15087
  2. Added quotes around the ssl-root-cert parameter were added to the commands for running the yb-client-wrapper jar.

Describe if there are any user-facing changes

No

How was this pull request tested?

Automation tests

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

@priyanshi-yb priyanshi-yb changed the title Move ALTER TYPE to TEXT DDL to CREATE for metadata tables of target db Move ALTER TYPE TEXT DDL to CREATE for metadata tables of target db Mar 5, 2025
@@ -81,7 +82,7 @@ func (ybc *YugabyteDBCDCClient) GenerateAndStoreStreamID() (string, error) {
args := fmt.Sprintf("-create -master_addresses %s -table_name %s -db_name %s ", ybc.ybMasterNodes, ybc.tableName, ybc.dbName)

if ybc.sslRootCert != "" {
args += fmt.Sprintf(" -ssl_cert_file %s", ybc.sslRootCert)
args += fmt.Sprintf(" -ssl_cert_file '%s'", ybc.sslRootCert)
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is the context for this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I hit this problem when I was trying out with the root cert: If the root cert file name has special characters or spaces, this command will error out if quotes are not present around the file path.
ex. root-cert /<path>/root (2).crt
This might not be really possible in real scenario, but I thought its better to fix it.

@priyanshi-yb priyanshi-yb marked this pull request as ready for review March 6, 2025 06:47
@priyanshi-yb priyanshi-yb merged commit 95bb038 into main Mar 6, 2025
66 checks passed
@priyanshi-yb priyanshi-yb deleted the priyanshi/alter-text-metadata-tables branch March 6, 2025 08:12
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