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

s3 external storage fixes #29220

Merged
merged 11 commits into from
Oct 22, 2021
Merged

s3 external storage fixes #29220

merged 11 commits into from
Oct 22, 2021

Conversation

icewind1991
Copy link
Member

@icewind1991 icewind1991 commented Oct 13, 2021

  • Fix "delete markers" causing ghost folders
  • More efficient file scanning
  • Make directory copy a bit more reliable
  • More reliable detection of changed folder contents
  • CI against 2 different "s3 compatible" implementations and with versioning enabled and disabled

@icewind1991 icewind1991 added the 2. developing Work in progress label Oct 13, 2021
@icewind1991 icewind1991 marked this pull request as draft October 13, 2021 17:43
@icewind1991 icewind1991 force-pushed the s3-external-list branch 10 times, most recently from a851448 to 3eed59d Compare October 14, 2021 18:00
@icewind1991 icewind1991 changed the title s3 external storage listing rework s3 external storage fixes Oct 15, 2021
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991
Copy link
Member Author

Ok, this should be good now.

It grew a bit in scope outside the "fix ghost folders" in order to have ci be happy in all cases but those changes should be good to have anyway

@icewind1991 icewind1991 marked this pull request as ready for review October 15, 2021 15:19
@icewind1991 icewind1991 added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 15, 2021
@icewind1991 icewind1991 added this to the Nextcloud 23 milestone Oct 15, 2021
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

I've tested the main cases like rename, move and also create a folder with a similar name for #25370

All worked fine. Well done!

See comments

apps/files_external/lib/Lib/Storage/AmazonS3.php Outdated Show resolved Hide resolved
apps/files_external/lib/Lib/Storage/AmazonS3.php Outdated Show resolved Hide resolved
apps/files_external/lib/Lib/Storage/AmazonS3.php Outdated Show resolved Hide resolved
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
/** @var bool|null */
private $versioningEnabled = null;

/** @var IMemcache */
Copy link
Member

Choose a reason for hiding this comment

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

make that ICache ?

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍

mind having a look at the code scanning issues before merging ?

@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish bug and removed 3. to review Waiting for reviews labels Oct 22, 2021
@skjnldsv skjnldsv merged commit 2be0eda into master Oct 22, 2021
@skjnldsv skjnldsv deleted the s3-external-list branch October 22, 2021 10:06
@PVince81
Copy link
Member

should we limit backport of this to stable22 ?
it's a rather big impactful change

@skjnldsv
Copy link
Member

Ok! 👍

@skjnldsv
Copy link
Member

/backport to stable22

@icewind1991
Copy link
Member Author

/backport to stable21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants