apache/beam
View on GitHubpy DataflowRunner should warn if the stagingLocation has a TTL
Open
#18,123 opened on Jun 3, 2022
P3coregood first issueimprovementpython
Repository metrics
- Stars
- (7,313 stars)
- PR merge metrics
- (Avg merge 6d) (243 merged PRs in 30d)
Description
We have seen a few customers run into a hard-to-track-down bug where the staging bucket has a TTL, but files get TTL-deleted when they are still needed.
This might be because of:
- Long lived batch jobs / streaming jobs can reference staged files arbitrarily later and will fail in bad ways if they have been deleted.
- Some customers even hit issues where the "check file already exists" succeeds when starting a job, but then the file is TTL-deleted before the job actually starts. (This sounds crazy, but may happen if TTL is 7 days and jobs run every 7 days, for example. Race condition.)
I'm hoping it's not hard to check that files would have TTLs and warn if so.
Imported from Jira BEAM-1506. Original Jira may contain additional context. Reported by: dhalperi.