fsspec / fsspec/s3fs

Unexplainable size limit for switching to multipart upload

Open
#421 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1k
Forks
305
Avg merge
22h 37m
Merged PRs (30d)
4

Description

This isn't an observed bug. However, when looking at the code, I found it odd that _put_file and _pipe_file switch to multipart at 5 MB but use 50 MB chunks by default. In my opinion, the limit should be the specified chunk size.

https://github.com/dask/s3fs/blob/38bceeed4bc7de6db6dc06ce67149aa9a8f49699/s3fs/core.py#L789-L796

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in s3fs/core.py at lines 789-796, where _put_file and _pipe_file choose when to switch to multipart upload. Compare that threshold with the specified default chunk size, then verify that the switch uses the intended limit and that the resulting upload behavior matches the issue's request.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.