-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add fed shares scanner batched cronjob #37391
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. |
9ac5e31
to
d2a5355
Compare
Pls run: |
d2a5355
to
8c1c3df
Compare
4663fb8
to
35affe6
Compare
@micbar do you want to fit this in 10.5? |
35affe6
to
a5d85b0
Compare
apps/files_sharing/appinfo/Migrations/Version20200504211654.php
Outdated
Show resolved
Hide resolved
a5d85b0
to
ae924f1
Compare
ae924f1
to
b7858c1
Compare
Migrations when upgrading from 10.4 + potential impact on upgrade duration (small/mid/high)MID - we are adding a new column to mid-sized table, but we do not update/alter the values Replaces former background job? If yes, is it still available or not?It replaces former Is the checkbox in admin settings the same as
|
Thanks @mrow4a.
|
Yes, this is default value currently configured
yes, fed share can be scanned only once per 3h (by default).
check -> operation of checking if fed share should be scanned (last user login and last fed shares scan time) The difference with previous job is that previously it "polled" all the fed shares with each command execution. Poll was adjusting root etag of the folder (helping discovery on client). The main problem with "polling" was that in some corner cases it could case issues with sync/web client change discovery (ref owncloud/enterprise#3902). Now instead of "adjusting root etag from remote to local", we "sync whole tree from remote to local", which is much more expensive operation, but we have no other choice. |
Problem
This PR is solving the issues caused by PollIncommingShares command where simultaneous browsing in UI, syncing with sync client and issuing poll-command could cause stale filecache entries - https://github.com/owncloud/enterprise/issues/3902
Fed shares scanner
ScanExternalShares is a background job used to run the external shares
scanner over external shares that are eligible for scanning,
to ensure integrity of the file cache. Scanner will search for external shares
that satisfy the below requirements:
scans will be performed out of all accepted external shares
last [cronjob_scan_external_min_scan] seconds
least [cronjob_scan_external_min_login] seconds ago
and requires scan
How tested
occ background:queue:execute --force --accept-warning 12
How to enable
Notes
@micbar Target 10.5
@micbar might need documentation update in https://doc.owncloud.com/server/admin_manual/configuration/files/federated_cloud_sharing_configuration.html