Anurag-S1ngh opened a new pull request, #41678:
URL: https://github.com/apache/beam/pull/41678

   ## Summary
   
   Warns during Dataflow job submission when the staging bucket has a lifecycle 
rule that deletes objects by age. This helps catch the configuration that 
causes staged files to be removed while a long-running or streaming pipeline 
still needs them.
   
   ## Changes
   
   - Inspect the staging bucket lifecycle rules before staging job resources
   - Warn when a `Delete` rule includes an `age` condition
   - Ignore local staging paths
   - Log metadata lookup failures at debug level so the check never blocks 
submission
   - Add tests for matching and non-matching lifecycle rules, local paths, and 
lookup failures
   
   ## Testing
   
   - `pytest apache_beam/runners/dataflow/internal/apiclient_test.py`: 71 
passed, 1 skipped
   - `ruff check apache_beam/runners/dataflow/internal/apiclient.py 
apache_beam/runners/dataflow/internal/apiclient_test.py`
   - `yapf --diff apache_beam/runners/dataflow/internal/apiclient.py 
apache_beam/runners/dataflow/internal/apiclient_test.py`
   
   Closes #18123
   


-- 
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]

Reply via email to