Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve handling of large single-part s3 uploads #49352

Merged
merged 4 commits into from
Dec 6, 2024

Conversation

icewind1991
Copy link
Member

@icewind1991 icewind1991 commented Nov 18, 2024

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Nov 18, 2024
@icewind1991 icewind1991 added this to the Nextcloud 31 milestone Nov 18, 2024
@icewind1991 icewind1991 requested review from juliusknorr, a team, artonge, yemkareems and provokateurin and removed request for a team November 18, 2024 16:57
@icewind1991 icewind1991 force-pushed the s3-disable-multipart branch 4 times, most recently from 945eef2 to c4b57af Compare November 19, 2024 15:53
@icewind1991 icewind1991 force-pushed the s3-disable-multipart branch 2 times, most recently from df82691 to ef0ce7c Compare November 26, 2024 18:52
@icewind1991
Copy link
Member Author

Failing checks are relevant, still working on this

@icewind1991 icewind1991 added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Dec 3, 2024
this should reduce potential memory issues if the limit is set very high

Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: Robin Appelman <[email protected]>
@icewind1991
Copy link
Member Author

re-requesting reviews since there were some significant changes

$stats = fstat($stream);
if (is_array($stats) && isset($stats['size'])) {
$size = $stats['size'];
$this->logger->warning("stream size $size");
Copy link
Member

@juliusknorr juliusknorr Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debugging leftover? otherwise warning seems a bit high as log level

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small comment, otherwise still 👍

@juliusknorr juliusknorr merged commit 3328cea into master Dec 6, 2024
188 checks passed
@juliusknorr juliusknorr deleted the s3-disable-multipart branch December 6, 2024 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants