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

source-oracle: use rs_id and ssn for keyless tables #2453

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

mdibaiee
Copy link
Member

@mdibaiee mdibaiee commented Feb 26, 2025

Description:

  • majority of changes are test updates. While at it, reworked our test suite a bit to make it faster (use online dictionary mode), less brittle (close logminer sessions between test runs to avoid resource exhaustion) and shorter (only run tests on a PDB instance, running every test twice for PDB and non-PDB isn't necessary anymore IMO, if we work in PDB, non-PDB is just a simpler version of the same operation)

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable

reworked our test suite a bit to make it faster, less brittle and
shorter
Comment on lines +369 to +370
RSID: msg.RSID,
SSN: msg.SSN,
Copy link
Member Author

Choose a reason for hiding this comment

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

RSID + SSN related change

@@ -553,6 +557,9 @@ func (s *replicationStream) receiveMessages(ctx context.Context, startSCN, endSC
return err
}

// For some reason RSID comes with a space before and after it
msg.RSID = strings.TrimSpace(msg.RSID)

Copy link
Member Author

Choose a reason for hiding this comment

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

RSID + SSN related change

Comment on lines +248 to +251

RSID string `json:"rs_id" jsonschema:"description=Record Set ID of the logical change"`

SSN int `json:"ssn" jsonschema:"description=SQL sequence number of the logical change"`
Copy link
Member Author

Choose a reason for hiding this comment

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

RSID + SSN related change


// Artificial RSID and SSN during backfill
RSID: "0x000000.00000000.0000",
SSN: rowOffset,
Copy link
Member Author

Choose a reason for hiding this comment

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

RSID + SSN related change

Copy link
Member

@willdonnelly willdonnelly left a comment

Choose a reason for hiding this comment

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

LGTM overall, only question is whether there's any backwards-compatibility concerns from this change (I think no?)

}
},
"type": "object",
"required": [
"schema",
"table",
"row_id"
"row_id",
"rs_id",
Copy link
Member

Choose a reason for hiding this comment

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

Are there any concerns about breakage to preexisting users when adding these as required? I think the answer is no (very few users at present and at least one seems to have automatic discovery disabled anyway), but just wanted to make sure this has been considered and we're confident no compatibility strategies are required.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah no real customers are using this seriously yet. Launchmetrics has been the only one who tried it but ended up not fitting their requirements and they are waiting for the batch connector

@mdibaiee mdibaiee linked an issue Feb 27, 2025 that may be closed by this pull request
@mdibaiee mdibaiee merged commit bc25672 into main Feb 27, 2025
53 of 56 checks passed
@mdibaiee mdibaiee deleted the mahdi/oracle-keyless-rsid-ssn branch February 27, 2025 14:27
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.

oracle: use rs_id for keyless tables, no reduction on documents
2 participants