-
Notifications
You must be signed in to change notification settings - Fork 668
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
Sync client recreates renamed folders after concurrent rename+sync #2170
Comments
VersionsownCloud client version 1.6.3 Edit: wrong version, sorry |
Note: I used pictures in the folders, it might or might not help to delay the renaming operation. Hmm, I managed to make files disappear twice now, with no traces in the trashbin. |
Tried again, steps:
If you're (un)lucky, one or two of the folders will be empty. In my case I iterated multiple times and ended up with the folders "oops" (empty), "tt" (contains the a_*.jpg files) and "zz" (empty). Here are the logs, starting from the first rename: |
Yep, I can confirm similar behavior in my sync client. Basically, if you uploade large files that aren't synced yet and change the name of a directory somewhere above those files, it causes sync errors and creates new directories on the server with the old name. It also tends to split out the files before and after the rename. To delete the aberrant files, you have to remove them via the website. |
So, has there been any movement on this bug? I think we're going to have to stop using ownCloud if this isn't fixed, since it causes data loss :-( |
Not yet. There is the idea of introducing locks but it would be a big architectural change and comes with several unsolved issues: owncloud/core#11804 But here I'm still wondering why the sync client auto-recreates the folder after it has been renamed. @guruz do you have an idea ? I'd expect that as soon as the target folder was renamed, further PUT statements would return 404 because the parent folder doesn't exist any more. |
OK, so it's a core problem that isn't going away anytime soon, eh? Bummer. I guess it's back to Dropbox (which, by the way, handles this use case perfectly). I'll let our users know... Thanks for your help! |
A couple of questions/comments:
|
|
OK, thanks for explanation. I will try to write a test-case reproducing this because as a user I cannot agree to data loss either. Maybe we can join forces on this @jnfrmarks ? |
Yes we can! |
This should be better now. We are trying hard not to have datalosses. |
Steps to reproduce:
Step 8) could probably be simulated through scripting.
Expected result
The three local folders and remote folders are the same and have the final name, the one from the last rename.
Actual result
If you are (un-)lucky, the sync client will recreate the old folder using the name it had before rename, and it will even upload some files in it.
In my first test case it also deleted a single file from those folders, which I found in the trashbin.
I'll try and reproduce this again and provide some logs.
CC @guruz
The text was updated successfully, but these errors were encountered: