Support shadow table in different database#2138
Merged
Deep1998 merged 2 commits intoGoogleCloudPlatform:mainfrom Jan 21, 2025
Merged
Support shadow table in different database#2138Deep1998 merged 2 commits intoGoogleCloudPlatform:mainfrom
Deep1998 merged 2 commits intoGoogleCloudPlatform:mainfrom
Conversation
...eam-to-spanner/src/main/java/com/google/cloud/teleport/v2/templates/DataStreamToSpanner.java
Outdated
Show resolved
Hide resolved
bharadwaj-aditya
requested changes
Jan 17, 2025
Contributor
bharadwaj-aditya
left a comment
There was a problem hiding this comment.
Apart from the comments, can you check for places to bump up the test coverage. Overall on this PR it seems low.
...eam-to-spanner/src/main/java/com/google/cloud/teleport/v2/templates/DataStreamToSpanner.java
Outdated
Show resolved
Hide resolved
...anner/src/main/java/com/google/cloud/teleport/v2/templates/SpannerTransactionWriterDoFn.java
Outdated
Show resolved
Hide resolved
...anner/src/main/java/com/google/cloud/teleport/v2/templates/SpannerTransactionWriterDoFn.java
Show resolved
Hide resolved
...r/src/main/java/com/google/cloud/teleport/v2/templates/spanner/ProcessInformationSchema.java
Show resolved
Hide resolved
darshan-sj
approved these changes
Jan 20, 2025
Contributor
darshan-sj
left a comment
There was a problem hiding this comment.
Looks good overall!
- Can you please create Bugs to update all the integration tests and Load tests?
- Can you document manual testing which you did in the PR description.
...eam-to-spanner/src/main/java/com/google/cloud/teleport/v2/templates/DataStreamToSpanner.java
Show resolved
Hide resolved
...eam-to-spanner/src/main/java/com/google/cloud/teleport/v2/templates/DataStreamToSpanner.java
Outdated
Show resolved
Hide resolved
...anner/src/main/java/com/google/cloud/teleport/v2/templates/SpannerTransactionWriterDoFn.java
Show resolved
Hide resolved
...anner/src/main/java/com/google/cloud/teleport/v2/templates/SpannerTransactionWriterDoFn.java
Show resolved
Hide resolved
...er/src/main/java/com/google/cloud/teleport/v2/templates/datastream/ShadowTableReadUtils.java
Show resolved
Hide resolved
Contributor
Author
Filed b/391169228 |
...r/src/main/java/com/google/cloud/teleport/v2/templates/spanner/ProcessInformationSchema.java
Show resolved
Hide resolved
...eam-to-spanner/src/main/java/com/google/cloud/teleport/v2/templates/DataStreamToSpanner.java
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change introduces support for shadow table in a separate database. The code changes aim to minimise the existing live flow changes as much as possible.
Summary of changes:
shadowTableSpannerInstanceIdandshadowTableSpanneDatabaseId: if both are provided we use a separate shadow table database, if neither are provided, we use the target database as the shadow table db as per the existing flow.Manual Tests done:
Pending: