feat(compute): Atomic updates for Hyperdisk performance (IOPS/Through…#16857
Conversation
|
Googlers: For automatic test runs see go/terraform-auto-test-runs. @malhotrasagar2212, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 1400 Click here to see the affected service packages
Action takenFound 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 1400 Click here to see the affected service packages
Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 1400 Click here to see the affected service packages
🟢 All tests passed! View the build log |
…put) Groups provisioned_iops, provisioned_throughput, and access_mode into a single PATCH request to ensure atomic updates and avoid API ratio validation errors during performance decreases. Fixes b/487264955 Fixes hashicorp/terraform-provider-google#26315
…put) Groups provisioned_iops, provisioned_throughput, and access_mode into a single PATCH request to ensure atomic updates and avoid API ratio validation errors during performance decreases. Fixes b/487264955 Fixes hashicorp/terraform-provider-google#26315
…ughput Groups provisioned_iops and provisioned_throughput into a single PATCH request to avoid API ratio validation errors. Handles access_mode in a separate request to satisfy API grouping rules. Fixes b/487264955 Fixes hashicorp/terraform-provider-google#26315
…ettings Groups provisioned_iops and provisioned_throughput into a single PATCH request to ensure atomic updates and avoid API ratio validation errors. Handles access_mode in a separate request to satisfy API field-grouping rules. Fixes b/487264955 Fixes hashicorp/terraform-provider-google#26315
f408755 to
4bd5729
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 1400 Click here to see the affected service packages
🟢 All tests passed! View the build log |
|
@malhotrasagar2212 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
|
@GoogleCloudPlatform/terraform-team @malhotrasagar2212 This PR has been waiting for review for 1 week. Please take a look! Use the label |
|
Hi @malhotrasagar2212, I'm following up on this PR as it's been waiting for review for over a week. All 23 CI checks have passed, and this change is important for fixing the atomicity bug in Hyperdisk performance updates (b/487264955) to avoid API ratio validation errors. Could you please take a look when you have a moment? Thanks! |
c2thorn
left a comment
There was a problem hiding this comment.
Noting that I really wanted to look for a way to avoid fully rewriting the generated update with a custom update, but could not find a better way. Each CRUD method we make fully custom brings the resource one step closer to just being better to handwrite fully than go through the generated resource.
But comparing with the old generated update, this is a faithful adaptation and addresses the problem by batching the updates together. Good work!
…put)
This PR fixes an atomicity bug where decreasing Hyperdisk performance limits (IOPS and throughput) simultaneously would fail due to sequential PATCH requests triggering API ratio validation errors.
Changes:
Disk.yamlandRegionDisk.yamlto group performance fields.custom_updatetemplates for zonal and regional disks to perform atomic PATCH requests.Fixes b/487264955
Fixes hashicorp/terraform-provider-google#26315
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.