-
Notifications
You must be signed in to change notification settings - Fork 663
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
New folders aren't watched immediately, potentially missing notifications #7068
Comments
There was a period of time between local discovery of a new folder and the folder receiving a filesystem watcher. Any changes to its contents during that time were missing, leading to misbehaviors.
Previously it depended on addFolder() / removeFolder() calls to adjust watchers when new folders were added or removed. There also needed to be complex move handling. Now, any folder creation/move-in notifications automatically trigger watcher additions and folder deletion/move-out triggers removal.
Previously it depended on addFolder() / removeFolder() calls to adjust watchers when new folders were added or removed. There also needed to be complex move handling. Now, any folder creation/move-in notifications automatically trigger watcher additions and folder deletion/move-out triggers removal.
There was a period of time between local discovery of a new folder and the folder receiving a filesystem watcher. Any changes to its contents during that time were missing, leading to misbehaviors.
Previously it depended on addFolder() / removeFolder() calls to adjust watchers when new folders were added or removed. There also needed to be complex move handling. Now, any folder creation/move-in notifications automatically trigger watcher additions and folder deletion/move-out triggers removal.
@ckamm i tried to reproduce the bug on client 2.5.3 but i did not manage it (on ubuntu 16.04) |
@lazawan That depends on when exactly you pasted the new files, it needs to happen before the creation of the new folder on the server is completed. Propagation of the contents of the folder happens afterwards. Possibly adding large files to the sync root might do it, but it could depend on job ordering. I'll look more closely tomorrow. |
Only on Linux:
This will be particularly bad if the user moved files into the new folder within the failure window. Then the next sync will assume these files were deleted and delete them on the server. Only the next full-discovery sync would upload the moved files and correct the issue.
FYI @PVince81
The text was updated successfully, but these errors were encountered: