Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-96

.part files seem to not be ignored by Watchdog

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.1107
    • Fix Version/s: 2.0.0522
    • Component/s: Synchronizer, Watchdog

      Description

      As we can see in the logs:

      2014-09-19 12:15:39,860 13629 140362872620800 DEBUG    nxdrive.synchronizer Creating local file 'INDEX.txt' in '/home/ataillefer/Nuxeo Drive/Test WS'
      2014-09-19 12:15:39,893 13629 140362864228096 DEBUG    root               worker: in event <InotifyEvent: src_path=/home/ataillefer/Nuxeo Drive/Test WS/.INDEX.txt.part, wd=2, mask=IN_CREATE, cookie=0, name=.INDEX.txt.part>
      2014-09-19 12:15:39,894 13629 140362864228096 DEBUG    root               worker: in event <InotifyEvent: src_path=/home/ataillefer/Nuxeo Drive/Test WS/.INDEX.txt.part, wd=2, mask=IN_MODIFY, cookie=0, name=.INDEX.txt.part>
      2014-09-19 12:15:39,894 13629 140362864228096 DEBUG    root               worker: in event <InotifyEvent: src_path=/home/ataillefer/Nuxeo Drive/Test WS/.INDEX.txt.part, wd=2, mask=IN_MOVED_FROM, cookie=99562, name=.INDEX.txt.part>
      2014-09-19 12:15:39,895 13629 140362864228096 DEBUG    root               worker: in event <InotifyEvent: src_path=/home/ataillefer/Nuxeo Drive/Test WS/INDEX.txt, wd=2, mask=IN_MOVED_TO, cookie=99562, name=INDEX.txt>
      2014-09-19 12:15:39,897 13629 140362864228096 DEBUG    root               worker: in event <InotifyEvent: src_path=/home/ataillefer/Nuxeo Drive/Test WS/INDEX.txt, wd=2, mask=IN_ATTRIB, cookie=0, name=INDEX.txt>
      2014-09-19 12:15:39,910 13629 140362872620800 INFO     nxdrive.controller Updated list of recently modified items in /home/ataillefer/Nuxeo Drive: [u'INDEX.txt']
      2014-09-19 12:15:39,917 13629 140363506710272 DEBUG    nxdrive.gui.application Updated icon state to: enabled
      2014-09-19 12:15:39,919 13629 140362872620800 DEBUG    nxdrive.gui.application 0 pending operations for: /home/ataillefer/Nuxeo Drive
      2014-09-19 12:15:39,919 13629 140362872620800 DEBUG    nxdrive.gui.application Updating last ended synchronization date to 19 sept. 12:15 for: /home/ataillefer/Nuxeo Drive
      2014-09-19 12:15:39,933 13629 140362872620800 DEBUG    nxdrive.synchronizer [/home/ataillefer/Nuxeo Drive] - [http://localhost:8080/nuxeo/]: synchronized: 2, pending: 2, local: 0.039s, remote: 0.128s sync: 0.257s
      2014-09-19 12:15:39,966 13629 140362872620800 DEBUG    nxdrive.synchronizer Sorted events: []
      2014-09-19 12:15:39,978 13629 140362872620800 DEBUG    nxdrive.synchronizer [/home/ataillefer/Nuxeo Drive] - [http://localhost:8080/nuxeo/]: synchronized: 0, pending: 0, local: 0.013s, remote: 0.019s sync: 0.012s
      2014-09-19 12:15:39,979 13629 140362872620800 DEBUG    nxdrive.synchronizer Sleeping 4.955s
      2014-09-19 12:15:45,030 13629 140362872620800 DEBUG    nxdrive.synchronizer Sorted events: [<DirModifiedEvent: src_path=u'/home/ataillefer/Nuxeo Drive'>, <DirCreatedEvent: src_path=u'/home/ataillefer/Nuxeo Drive/Test WS'>, <DirModifiedEvent: src_path=u'/home/ataillefer/Nuxeo Drive'>, <DirModifiedEvent: src_path=u'/home/ataillefer/Nuxeo Drive/Test WS'>, <FileCreatedEvent: src_path=u'/home/ataillefer/Nuxeo Drive/Test WS/.INDEX.txt.part'>, <DirModifiedEvent: src_path=u'/home/ataillefer/Nuxeo Drive/Test WS'>, <FileModifiedEvent: src_path=u'/home/ataillefer/Nuxeo Drive/Test WS/.INDEX.txt.part'>, <FileMovedEvent: src_path=u'/home/ataillefer/Nuxeo Drive/Test WS/.INDEX.txt.part', dest_path=u'/home/ataillefer/Nuxeo Drive/Test WS/INDEX.txt'>, <DirModifiedEvent: src_path=u'/home/ataillefer/Nuxeo Drive/Test WS'>, <FileModifiedEvent: src_path=u'/home/ataillefer/Nuxeo Drive/Test WS/INDEX.txt'>]
      2014-09-19 12:15:45,051 13629 140362872620800 INFO     nxdrive.synchronizer Unhandled case: <FileModifiedEvent: src_path=u'/home/ataillefer/Nuxeo Drive/Test WS/.INDEX.txt.part'> /Test WS/.INDEX.txt.part .INDEX.txt.part
      

      We should also replace trace by error in Synchronizer.handle_local_changes:

      except Exception as e:
              if e.args and len(e.args) > 0 and e.args[0]:
                  e.args = tuple([e.args[0].encode('utf-8')])
                  log.trace(e)
      

      because this error often happens on *.part files.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: