-
Notifications
You must be signed in to change notification settings - Fork 184
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
autoaccept groups shares may create too much load and not finish all accepts #10591
Comments
|
Could you please elaborate? How is it related to https://github.com/owncloud/enterprise/issues/6958#issuecomment-2464126518 ? |
Group shares are auto accepted for all the members of a group at the point in time of the share creation. Members which are added later will see the share, but it will be not synced to the desktop. NOTE: accepting shares is nowadays called „Sync“ and only has effect on the native clients. For the web client, you do not need to sync a share to work with it. |
The current implementation for autoaccept shares needlessly amplifies writes. On a group share with 5k members 5k writes are made to update the received shares status, at least one per member.
Furthermore, when the autoaccept logic iterades over members and is killed by kubernetes it may not have accepted all shares. It will not pick that up because we fetched the event from the queue and ACKed it automatically.
A better solution would be to move the autoaccept code to the share manager implementation itself: whenever a list received shares call is made we already fetch all group shares the user is a member of before fetching the received state for each share (that contains the mountpoint and the pending / accepted / rejected state). We can update any pending shares to accepted on the fly.
This would
IMO a reasonable tradeoff.
The text was updated successfully, but these errors were encountered: