Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sdks/python/apache_beam/options/pipeline_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,10 @@ def _handle_temp_and_staging_locations(self, validator):
return []
# Both staging and temp locations are bad, try to use default bucket.
else:
_LOGGER.warning(

@Abacn Abacn Jul 30, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is valid when error is "ERR_MISSING_GCS_PATH". We should only issue warning when either is "ERR_INVALID_GCS_PATH"

"Both temp_location and staging_location are invalid. "
"Expected format is 'gs://<bucket>/<object>'. "
"Attempting to create a default GCS bucket.")
Comment thread
yquaziii marked this conversation as resolved.
default_bucket = self._create_default_gcs_bucket()
if default_bucket is None:
temp_errors.extend(staging_errors)
Expand Down
Loading