feat(Spanner): implement Standardize shard config in live migration. - #3934
Conversation
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (15.90%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #3934 +/- ##
============================================
+ Coverage 55.66% 62.04% +6.37%
+ Complexity 7184 3112 -4072
============================================
Files 1114 546 -568
Lines 68276 32811 -35465
Branches 7702 3619 -4083
============================================
- Hits 38009 20357 -17652
+ Misses 27804 11381 -16423
+ Partials 2463 1073 -1390
🚀 New features to boost your workflow:
|
6ca19c2 to
f855b09
Compare
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request standardizes the shard configuration mechanism for live migrations to Spanner. By transitioning from a legacy JSON-based sharding context file to a more flexible configuration format and renaming the associated pipeline parameter, the changes improve maintainability and align the configuration structure with broader project standards. The update includes necessary refactoring of the pipeline ingestion logic, Terraform infrastructure definitions, and comprehensive updates to existing integration tests. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request replaces the "shardingContextFilePath" parameter with "sourceConfigURL" across the "datastream-to-spanner" template, migrating the sharding configuration from a JSON map to a HOCON/JSON list format ("shardConfigs"). The feedback recommends adding defensive null checks: first, to ensure "shardConfigs" is not null in "SourceConfigParser" before sorting to prevent a NullPointerException, and second, to verify that "datastreamSourceType" is specified when "sourceConfigURL" is provided to avoid startup failures in retry modes.
f855b09 to
1bcae14
Compare
1bcae14 to
a1358cc
Compare
5f93aca to
7824a00
Compare
bharadwaj-aditya
left a comment
There was a problem hiding this comment.
Couple of things need to be changed here.
49d6b0c to
0247d12
Compare
0247d12 to
4a49180
Compare
8f69190
into
GoogleCloudPlatform:main
No description provided.