Uh oh!
There was an error while loading. Please reload this page.
Fix folder size contained in S3 buckets - #28185
Merged
juliusknorr merged 1 commit intoAug 20, 2021
Merged
Conversation
artongeforce-pushed
the
investigate/pending_size_for_s3_buckets_master
branch
4 times, most recently
from
July 27, 2021 09:24
1c04f22 to
e05aa2cCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
artonge
commented
Jul 28, 2021
Uh oh!
There was an error while loading. Please reload this page.
CarlSchwan
commented
Aug 16, 2021
Member
I investigated a similar issue with using Group Folders with the S3 storage with Vincent last week:
|
PVince81
commented
Aug 19, 2021
Member
ref: nextcloud/groupfolders#1630 but probably not related because the latter is for group folders and the problem with S3 primary happens also without |
artongeforce-pushed
the
investigate/pending_size_for_s3_buckets_master
branch
2 times, most recently
from
August 19, 2021 10:28
aea7a2e to
bdd1a35Compareartonge
commented
Aug 19, 2021
CollaboratorAuthor
/backport to stable22 |
artonge
commented
Aug 19, 2021
CollaboratorAuthor
/backport to stable21 |
If 'filesystem_check_changes' was set to never, the cached size was alway set to -1 (Pending) on every access Signed-off-by: Louis Chemineau <louis@chmn.me>
artongeforce-pushed
the
investigate/pending_size_for_s3_buckets_master
branch
from
August 19, 2021 13:03
bdd1a35 to
735fd94ComparePVince81
approved these changes
Aug 20, 2021
PVince81
left a comment
Member
There was a problem hiding this comment.
Alright, since the solution covers all the interesting cases let's move forward 👍
juliusknorr
approved these changes
Aug 20, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Folders contained in S3 bucket's are displayed with a size of "Pending".
The following command can get the real size to be displayed, but only for one refresh:
php occ files:scan --path "<S3 bucket path>"Rational (I might be wrong):
statmethod on the S3 folder, themtimeis always set to 'now'.hasUpdatedmethod fromFiles/Storage/Common.phpto always returnstrue,needsUpdatemethod inFiles/View.phpto always returnstruetoo.Files/Cache/Scanner.phpevery time the folder is acceceed. But it gets updated with a size of-1because the size for S3 folders is not getting computed and default to-1Need guidance on how and where we should address this issue :).