damccorm opened a new pull request, #41554:
URL: https://github.com/apache/beam/pull/41554
Note: this PR was auto-generated by tooling. Before moving it out of draft,
the author has done a full review of the PR, specifically evaluating it on the
following criteria:
- The PR is an appropriate fix for the issue (e.g. we're not changing a test
to avoid a bug)
- The PR is a simple fix to the issue (e.g. we're not adding infra when we
could just modify a test)
- The PR is not covering for other problems (e.g. if we're bumping timeouts,
it is not because we're covering for a performance problem)
Full details of the methodology of generation and review can be found here -
https://docs.google.com/document/d/14lj7ECVov4T4EdwmIzNlWrRGE3lLDMOwX5xUMGzaLoc/edit?usp=sharing
If you have concerns with the PR or with the underlying methodology used to
generate this, please comment below - they will be addressed by the author not
the tooling :)
## Summary
Falls back across Cloud Bigtable zones (`us-central1-a`, `us-central1-b`,
`us-central1-c`, `us-central1-f`, `us-east1-b`) in
`apache_beam.yaml.integration_tests.temp_bigtable_table` when a zone is
temporarily out of capacity during test cluster creation.
## Root Cause
`temp_bigtable_table` hardcoded `"us-central1-a"` when creating temporary
Cloud Bigtable development clusters for YAML Bigtable integration tests
(`BigtableTest`, `Bigquery_To_BigtableTest`, `Gcs_Avro_To_Cloud_BigtableTest`).
During `us-central1-a` Bigtable capacity stockouts (7 occurrences across
`PostCommit YAML Xlang Direct`, `PreCommit YAML Xlang Direct`, and Python
cross-language Bigtable suites on 2026-11-21, including
https://github.com/apache/beam/actions/runs/44962091537,
https://github.com/apache/beam/actions/runs/44930378303, and
https://github.com/apache/beam/actions/runs/44930558470),
`operation.result(timeout=500)` failed with:
```
google.api_core.exceptions.Cancelled: 499 Operation successfully rolled back
: Not enough servers to allocate the requested nodes. We have temporarily sold
out of Cloud Bigtable in this zone.
```
## Fix
- Iterate through fallback Bigtable zones (`us-central1-a`, `us-central1-b`,
`us-central1-c`, `us-central1-f`, `us-east1-b`) in `temp_bigtable_table`
whenever cluster creation fails due to zone stockout (`sold out`, `not enough
servers`, or `zone_resource_pool_exhausted`), generating a fresh `instance_id`
on each retry.
- Add unit test coverage in
`sdks/python/apache_beam/yaml/integration_tests_test.py`.
### Verification
- Triggered `beam_PostCommit_Yaml_Xlang_Direct.yml` workflow run on branch:
[`44965879176`](https://github.com/apache/beam/actions/runs/44965879176)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]