apache/beam

java DataflowRunner should warn if the stagingLocation has a TTL

开放

#18,209 创建于 2022年6月3日

 (0 条评论) (0 个反应) (0 位负责人)Java (4,097 个派生)batch import
P3dataflowgood first issueimprovementrunners

仓库指标

星标
 (7,313 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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:

  1. Long lived batch jobs / streaming jobs can reference staged files arbitrarily later and will fail in bad ways if they have been deleted.
  2. 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-1507. Original Jira may contain additional context. Reported by: dhalperi.

贡献者指南