fix(Spanner): Segregate spanner instances for templates in load test. - #4136
Conversation
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) 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 #4136 +/- ##
=============================================
+ Coverage 33.89% 55.89% +21.99%
- Complexity 503 7475 +6972
=============================================
Files 215 1134 +919
Lines 13128 70126 +56998
Branches 1303 8012 +6709
=============================================
+ Hits 4450 39197 +34747
- Misses 8313 28383 +20070
- Partials 365 2546 +2181
🚀 New features to boost your workflow:
|
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 introduces a mechanism to segregate Spanner instances across different load test templates. By allowing tests to specify an instance hint, the system can deterministically assign unique Spanner instances from the available pool, preventing resource contention and potential overloading that occurred when instances were selected randomly. 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 updates SpannerResourceManager to allow selecting a static Spanner instance deterministically by passing an optional instanceHint (as Optional<Integer>). It also updates various load-testing classes to use this new parameter. The reviewer suggests simplifying the API usage across all test files by allowing a primitive int to be passed directly instead of wrapping it in java.util.Optional.of(...).
2a3390a to
40c6fc2
Compare
40c6fc2 to
7e55d5f
Compare
621956e
into
GoogleCloudPlatform:main
Uh oh!
There was an error while loading. Please reload this page.