You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2020/08/10 17:07:08 UTC
[jira] [Updated] (BEAM-10241) Dataflow template sharing temp
directory in FileBasedSink which may cause a job deleting temp files
generated by another job
[ https://issues.apache.org/jira/browse/BEAM-10241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Beam JIRA Bot updated BEAM-10241:
---------------------------------
Labels: stale-P2 (was: )
> Dataflow template sharing temp directory in FileBasedSink which may cause a job deleting temp files generated by another job
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: BEAM-10241
> URL: https://issues.apache.org/jira/browse/BEAM-10241
> Project: Beam
> Issue Type: Bug
> Components: io-java-gcp
> Reporter: Minbo Bae
> Priority: P2
> Labels: stale-P2
>
> The temp directory in FileBasedSink consists of output + ".temp-beam-" + [UUID.randomUUID()|[https://github.com/apache/beam/blob/v2.14.0/sdks/java/core/src/main/java/org/apache/beam/sdk/io/FileBasedSink.java#L521]].
> By the way, the part of ".temp-beam-" + UUID.randomUUID()" is fixed when the pipeline is uploaded as Dataflow template, and all the jobs created from the Dataflow template use the same temp_directory, if their output directories are the same.
> This may cause a job deletes temp files generated by another job when the outputs of concurrent template jobs have the same directory (e.g. gs://df-job/output/job1.out and gs://df-job/output/job2.out)
> It looks like [BigQueryIO|[https://github.com/apache/beam/blob/v2.22.0/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.java#L1075-L1163]] creates a BQ job id at execution time in the case of Dataflow template. Can we make a similar fix for FileBasedSink?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)