Non-deterministic behaviour with the sync client on windows and files differing by case
Steps to reproduce
- Install owncloud 9.1.4
- Run smashbox: https://github.com/yolanda93/smashbox/tree/case_conflicts The test is implemented in: https://github.com/yolanda93/smashbox/blob/case_conflicts/lib/test_caseconflicts.py
Test caseconflicts
- This test is going to create the following files on the server: ['TestCaseConflicts', 'testcaseconflicts', 'testCaseConflicts', 'testcaseConflicts', 'TestcaseConflicts', 'Testcaseconflicts', 'TestCaseconflicts', 'testCaseconflicts' ]
- The files are synchronized into empty local sync folders.
Expected behaviour
- Unix All the files are synchronized. ['TestCaseConflicts', 'testcaseconflicts', 'testCaseConflicts', 'testcaseConflicts', 'TestcaseConflicts', 'Testcaseconflicts', 'TestCaseconflicts', 'testCaseconflicts' ]
- Windows Only one file is downloaded since Windows file system is case insensitive. This file is always the same. ['TestCaseConflicts']
Actual behaviour
Windows Only one file is downloaded since it is case insensitive. This file is NOT always the same. Local files after sync0: 'TestCaseConflicts' Local files after sync1: 'testCaseconflicts' Local files after sync2: 'Testcaseconflicts' Local files after sync3: 'testCaseConflicts' .......
Logs
Smashbox logs
********************************************************************************
(1) creator: PREPARATION
********************************************************************************
INFO:root:entering new step
********************************************************************************
(2) creator: ADD 8 FILES WITH CONFLICT CASE FILENAMES ON THE SERVER
********************************************************************************
INFO:root:The following files has been created ['TestCaseConflicts', 'testcaseconflicts', 'testCaseConflicts', 'testcaseConflicts', 'TestcaseConflicts', 'Testcaseconflicts', 'TestCaseconflicts', 'testCaseconflicts']
INFO:root:entering new step
********************************************************************************
(3) creator: SYNC AND CHECK IF SOME FILES ARE LOST OR DUPLICATES
********************************************************************************
INFO:root:The following files has been downloaded by the creator set(['.testCaseconflicts.~1053', '.testCaseConflicts.~4d3c', '.TestcaseConflicts.~29cc', 'TestCaseConflicts', '.TestCaseconflicts.~7546', '.Testcaseconflicts.~1e75'])
2017-06-28 17:34:20,207 - ERROR - creator - There are 7 files lost. The filenames are ['testcaseconflicts', 'testCaseConflicts', 'testcaseConflicts', 'TestcaseConflicts', 'Testcaseconflicts', 'TestCaseconflicts', 'testCaseconflicts'] error_check(len(lost_files)==0,"There are %d files lost. The filenames are %s " % (len(lost_files),str(lost_files))) failed in creator() ["C:\Users\ydelahoz\workspace\smashbox\lib\test_caseconflicts.py" at line 114]
2017-06-28 17:34:20,209 - ERROR - creator - There are 5 extra files. The filenames are ['.testCaseconflicts.~1053', '.testCaseConflicts.~4d3c', '.TestcaseConflicts.~29cc', '.TestCaseconflicts.~7546', '.Testcaseconflicts.~1e75'] error_check(len(extra_files)==0,"There are %d extra files. The filenames are %s" % (len(extra_files),str(extra_files))) failed in creator() ["C:\Users\ydelahoz\workspace\smashbox\lib\test_caseconflicts.py" at line 116]
INFO:root:entering new step
********************************************************************************
(4) downloader06: SYNC AND CHECK IF THE SAME FILES ARE DOWNLOADED IN A DIFFERENT DIRECTORY
********************************************************************************
INFO:root:entering new step
********************************************************************************
(4) downloader01: SYNC AND CHECK IF THE SAME FILES ARE DOWNLOADED IN A DIFFERENT DIRECTORY
********************************************************************************
INFO:root:entering new step
********************************************************************************
(4) downloader05: SYNC AND CHECK IF THE SAME FILES ARE DOWNLOADED IN A DIFFERENT DIRECTORY
********************************************************************************
INFO:root:entering new step
********************************************************************************
(4) downloader04: SYNC AND CHECK IF THE SAME FILES ARE DOWNLOADED IN A DIFFERENT DIRECTORY
********************************************************************************
INFO:root:entering new step
********************************************************************************
(4) downloader02: SYNC AND CHECK IF THE SAME FILES ARE DOWNLOADED IN A DIFFERENT DIRECTORY
********************************************************************************
INFO:root:entering new step
********************************************************************************
(4) downloader07: SYNC AND CHECK IF THE SAME FILES ARE DOWNLOADED IN A DIFFERENT DIRECTORY
********************************************************************************
INFO:root:entering new step
********************************************************************************
(4) downloader08: SYNC AND CHECK IF THE SAME FILES ARE DOWNLOADED IN A DIFFERENT DIRECTORY
********************************************************************************
INFO:root:entering new step
********************************************************************************
(4) downloader: SYNC AND CHECK IF THE SAME FILES ARE DOWNLOADED IN A DIFFERENT DIRECTORY
********************************************************************************
INFO:root:entering new step
********************************************************************************
(4) downloader03: SYNC AND CHECK IF THE SAME FILES ARE DOWNLOADED IN A DIFFERENT DIRECTORY
********************************************************************************
INFO:root:The files set(['.Testcaseconflicts.~1672', '.TestCaseconflicts.~1d38', '.TestcaseConflicts.~40ed', '.TestCaseConflicts.~1bf3', 'testCaseconflicts', '.testCaseConflicts.~6e66']) has been downloaded
2017-06-28 17:34:27,026 - ERROR - downloader05 - The files ['testCaseconflicts'] are now downloaded and previously not error_check(len(equal_files)==0,"The files %s are now downloaded and previously not" % str(equal_files)) failed in downloader() ["C:\Users\ydelahoz\workspace\smashbox\lib\test_caseconflicts.py" at line 135]
INFO:root:The files set(['.Testcaseconflicts.~1672', '.TestCaseconflicts.~1d38', '.TestcaseConflicts.~40ed', '.testCaseconflicts.~4dae', 'TestCaseConflicts', '.testCaseConflicts.~6e66']) has been downloaded
INFO:root:The files set(['.TestCaseconflicts.~1d38', '.testCaseconflicts.~4dae', '.TestcaseConflicts.~40ed', '.TestCaseConflicts.~1bf3', 'Testcaseconflicts', '.testCaseConflicts.~6e66']) has been downloaded
2017-06-28 17:34:30,038 - ERROR - downloader07 - The files ['Testcaseconflicts'] are now downloaded and previously not error_check(len(equal_files)==0,"The files %s are now downloaded and previously not" % str(equal_files)) failed in downloader() ["C:\Users\ydelahoz\workspace\smashbox\lib\test_caseconflicts.py" at line 135]
INFO:root:The files set(['.Testcaseconflicts.~1672', '.testCaseconflicts.~4dae', '.TestcaseConflicts.~40ed', '.TestCaseConflicts.~1bf3', 'TestCaseconflicts', '.testCaseConflicts.~6e66']) has been downloaded
2017-06-28 17:34:30,440 - ERROR - downloader01 - The files ['TestCaseconflicts'] are now downloaded and previously not error_check(len(equal_files)==0,"The files %s are now downloaded and previously not" % str(equal_files)) failed in downloader() ["C:\Users\ydelahoz\workspace\smashbox\lib\test_caseconflicts.py" at line 135]
INFO:root:The files set(['.Testcaseconflicts.~1672', '.testCaseconflicts.~4dae', '.TestcaseConflicts.~40ed', '.TestCaseConflicts.~1bf3', 'TestCaseconflicts', '.testCaseConflicts.~6e66']) has been downloaded
2017-06-28 17:34:32,450 - ERROR - downloader06 - The files ['TestCaseconflicts'] are now downloaded and previously not error_check(len(equal_files)==0,"The files %s are now downloaded and previously not" % str(equal_files)) failed in downloader() ["C:\Users\ydelahoz\workspace\smashbox\lib\test_caseconflicts.py" at line 135]
INFO:root:The files set(['.Testcaseconflicts.~1672', '.TestCaseconflicts.~1d38', '.TestcaseConflicts.~40ed', '.TestCaseConflicts.~1bf3', '.testCaseconflicts.~4dae', 'testCaseConflicts']) has been downloaded
2017-06-28 17:34:32,851 - ERROR - downloader03 - The files ['testCaseConflicts'] are now downloaded and previously not error_check(len(equal_files)==0,"The files %s are now downloaded and previously not" % str(equal_files)) failed in downloader() ["C:\Users\ydelahoz\workspace\smashbox\lib\test_caseconflicts.py" at line 135]
INFO:root:The files set(['.TestCaseconflicts.~1d38', '.testCaseconflicts.~4dae', '.TestcaseConflicts.~40ed', '.TestCaseConflicts.~1bf3', 'Testcaseconflicts', '.testCaseConflicts.~6e66']) has been downloaded
2017-06-28 17:34:33,513 - ERROR - downloader08 - The files ['Testcaseconflicts'] are now downloaded and previously not error_check(len(equal_files)==0,"The files %s are now downloaded and previously not" % str(equal_files)) failed in downloader() ["C:\Users\ydelahoz\workspace\smashbox\lib\test_caseconflicts.py" at line 135]
INFO:root:The files set(['.Testcaseconflicts.~1672', '.TestCaseconflicts.~1d38', '.TestcaseConflicts.~40ed', '.testCaseconflicts.~4dae', 'TestCaseConflicts', '.testCaseConflicts.~6e66']) has been downloaded
INFO:root:The files set(['.TestCaseconflicts.~1d38', '.testCaseconflicts.~4dae', '.TestcaseConflicts.~40ed', '.TestCaseConflicts.~1bf3', 'Testcaseconflicts', '.testCaseConflicts.~6e66']) has been downloaded
2017-06-28 17:34:35,428 - ERROR - downloader - The files ['Testcaseconflicts'] are now downloaded and previously not error_check(len(equal_files)==0,"The files %s are now downloaded and previously not" % str(equal_files)) failed in downloader() ["C:\Users\ydelahoz\workspace\smashbox\lib\test_caseconflicts.py" at line 135]
@guruz bug or expected behavior ?
@yolanda93 The sync client decides which file to sync when. Could you re-open in 'client' repository? (And post a link here and close)
@ogoffart thinks this is a parallelism issue, I think it's related to what is returned from the OS randomly? hmmm
Re-opened in client repository: https://github.com/owncloud/client/issues/5870
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.