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
Revert "Don't mount shares with failed underlying storages" #41059
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please add changelog.
Should this not target the |
dd0ca71
to
8cb7911
Compare
8cb7911
to
f6ec652
Compare
Kudos, SonarCloud Quality Gate passed! |
@jvillafanez reverting this causes problems to come back in some app tests. For example: Also in Is there likely to be another core change to address this? |
I think the fixes for those issues were a side effect. Maybe we can try to run those tests with 10.12.0 or 10.13.0 and see what happens. There are some skips in owncloud/user_ldap#814 so I guess the issue was already there. I'm not sure about https://github.com/owncloud/files_lifecycle/issues/555 , maybe it was merged right after the core fix was merged. If they are side effects, I think it's fine to skip those because we'll have to analyze the issues separately anyway. |
@jvillafanez after the original PR #41014 was merged in core, we adjusted the files_lifecycle tests - see PR https://github.com/owncloud/files_lifecycle/pull/544 The test scenarios started doing the right thing, so we removed the "expectation" of If there is some "easy" way to make these tests pass again (without causing other performance... side-effects), that would be nice. Otherwise we will revert the test changes. |
owncloud/user_ldap#814 is caused by the previous exception. Since the LDAP is down, the FS initialization for the "original" user (Alice) fails ( core/apps/files_sharing/lib/SharedStorage.php Lines 102 to 107 in 18793a2
rootPath isn't set due to the bind exception that happens in the initMountPoints method.
I think running through the |
For https://github.com/owncloud/files_lifecycle/issues/555 I'll have a deep look at it tomorrow (I need a fresh installation). I guess the problem is that the shares are "limited" to the user's files, and the archived files are outside of it, so maybe they're counted as "not available". |
The problem seems to be around https://github.com/owncloud/core/blob/v10.13.2/lib/private/Files/View.php#L1448-L1456 The failure in the initialization of the shared storage happens because the target file (the one shared and now archived) isn't found in the owner's filesystem. The target file is archived and the owner's view doesn't reach it (it's out of the ownCloud FS) Taking this into account, I guess the problem was there from the beginning. We just had the patch before we noticed the problem. |
Revert "Don't mount shares with failed underlying storages"
Revert "Don't mount shares with failed underlying storages"
Revert "Don't mount shares with failed underlying storages"
@jvillafanez I think that we will revert the user_ldap and files_lifecycle tests so that they go back to passing again (demonstrating what is the "current" behavior) If some thing happens to implement a new/different fix related to this, then the tests can easily be adjusted. |
This reverts commit 692c9be. and 635267e
Description
Revert those 2 commits for now due to performance problems for large installations
Related Issue
https://github.com/owncloud/enterprise/issues/6098
Motivation and Context
There were performance problems caused by #41014 making the system too slow.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: