[
https://issues.apache.org/jira/browse/BEAM-11934?focusedWorklogId=567423&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-567423
]
ASF GitHub Bot logged work on BEAM-11934:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 17/Mar/21 04:50
Start Date: 17/Mar/21 04:50
Worklog Time Spent: 10m
Work Description: nehsyc commented on a change in pull request #14164:
URL: https://github.com/apache/beam/pull/14164#discussion_r595710982
##########
File path: sdks/java/core/src/main/java/org/apache/beam/sdk/io/WriteFiles.java
##########
@@ -133,7 +139,14 @@
// We could consider making this a parameter.
private static final int SPILLED_RECORD_SHARDING_FACTOR = 10;
+ // The record count and buffering duration to trigger flushing records to a
tmp file. Mainly used
+ // for writing unbounded data to avoid generating too many small files.
+ private static final int FILE_TRIGGERING_RECORD_COUNT = 10000;
+ private static final Duration FILE_TRIGGERING_RECORD_BUFFERING_DURATION =
+ Duration.standardSeconds(1);
Review comment:
These values are rather random :\ Let me know if you have insights of
what values would be more proper.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 567423)
Time Spent: 2h 50m (was: 2h 40m)
> GCS streaming file sink uses runner determined sharding
> -------------------------------------------------------
>
> Key: BEAM-11934
> URL: https://issues.apache.org/jira/browse/BEAM-11934
> Project: Beam
> Issue Type: Improvement
> Components: io-java-files, io-java-gcp
> Reporter: Siyuan Chen
> Assignee: Siyuan Chen
> Priority: P2
> Time Spent: 2h 50m
> Remaining Estimate: 0h
>
> Integrate file sink with shardable `GroupIntoBatches` (BEAM-10475) to allow
> runner determined dynamic sharding for streaming use cases.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)