[
https://issues.apache.org/jira/browse/BEAM-12072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17549242#comment-17549242
]
Danny McCormick commented on BEAM-12072:
----------------------------------------
This issue has been migrated to https://github.com/apache/beam/issues/20849
> WriteToFiles with a concrete sink can shunt data to a single window
> -------------------------------------------------------------------
>
> Key: BEAM-12072
> URL: https://issues.apache.org/jira/browse/BEAM-12072
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Brian Hulette
> Priority: P3
>
> When given a concrete `FileSink`, `WriteToFiles` will re-use the same sink
> across windows:
> -
> https://github.com/apache/beam/blob/e92d184abc79fe84c48de3dfd9dd168d9b38feac/sdks/python/apache_beam/io/fileio.py#L461
> -
> https://github.com/apache/beam/blob/e92d184abc79fe84c48de3dfd9dd168d9b38feac/sdks/python/apache_beam/io/fileio.py#L625
> This can lead to data for one window being written to the sink for another
> window.
> See discussion:
> https://github.com/apache/beam/pull/14374#discussion_r604320333
--
This message was sent by Atlassian Jira
(v8.20.7#820007)