apache / apache/beam

Too many shards in GCS

Open
#20,144 0 comments 0 reactions 0 assignees View on GitHub
core harness improvement P3 python
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

We have observed case where the data was spread very thinly over automatically computed number of shards.

This caused wait for the buffers to fill before sending the data over to gcs causing upload timeout as we did not upload any data for while waiting.

However, by setting an explicit number of shards (1000 in my case) solved this problem potentially because all the shards had enough data to fill the buffer write avoiding timeout.

 

We can improve the sharding logic so that we don't create too many shards.

Alternatively, we can improve connection handling so that the connection does not timeout.

Imported from Jira [BEAM-9752](https://issues.apache.org/jira/browse/BEAM-9752). Original Jira may contain additional context.
Reported by: angoenka.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.