-
Notifications
You must be signed in to change notification settings - Fork 429
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
Push creating a new copy of the file and folders each time I push #56
Comments
Just the ModTime and MimeType after stat-ing are sufficient. |
Hi, I have modified the title to be more accurate. Doing some more testing and the issue seems to be that each time I push it creates a new copy. |
Another thing off the top of my head that might be related to the original issue, would you mind recreating that whole hierachy inside a test directory that isn't shared and repeating that test in there? If you can't reproduce that then I have a start off point for investigation. |
Is it because I have a push already running in a parallel process? |
Quite plausible but did you try the last three remedies I recommended? That is just so that we can eliminate variables. |
Software was up to date. For the record the parallel process drive push is still running, pushing a separate folder |
So not running almost equivalent parallel uploads and your drive version is at v0.0.8a and this persists, right? If it is possible and not a private one, please send me the subject file so that I can try investigating. |
the parallel process will finish soon and I will retest. Feeling confident that it is the issue. |
Cool. A parallel upload in the worst case would mean that the folder is not found at the exact time by more than one uploader and then created by each worker at the same instant. This would be the equivalent of someone/people creating the files/folders with the same names and repeating the working. If it is the parallel upload, I think this issue #2 also mentioned in the README might be relevant. |
Thank you Graeme for your patience and kuddos for the walk through. This finally got me to find out the cause of the problem, and I'll probably implement the solution over the weekend. |
Great! What did you have to change at your end to reproduce it? Sent from my iPhone
|
So I had to toggle a resource race on the cloud since files are uploaded concurrently. Basically make a local dir, then inside it, make a couple of levels deep of nesting, and throw in two files in divergent paths eg. example/p1/p2/p3/here.txt and example/p1/p2/p4/there |
I have a related issue with 0.0.9:
Each error results in a minimal duplicated folder structure: scan/1994-Kos/afile.jpg scan/1994-Kos/anotherfile.jpg |
@graemerobb @tomtor please see PR #67 |
Tested against 0.0.8rc2
$ cat hello_world > a file
$ drive push a_file
(pushes)
$ drive push a_file
(everythign is up to date
However, do the same with a Jpg in a different directory
$ drive push head.jpg
(pushes)
$ drive push head.jpg
(pushes again)
UPDATE
multple copies of the folder structure and file have been created in the drive
The text was updated successfully, but these errors were encountered: