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

UNIQUE constraint prevent the remote scan to finish and sync to happen

    XMLWordPrintable

    Details

      Description

      During a synchronization if a UNIQUE constraint is raised while update remote pair, then the scan is interrupted and prevent the rest of synchronization to happen.

      2017-05-09 09:10:17,496 18242 4637331456 ERROR    nxdrive.engine.watcher.remote_watcher UNIQUE constraint failed: States.remote_ref, States.remote_parent_ref
      Traceback (most recent call last):
        File "nxdrive/engine/watcher/remote_watcher.pyc", line 471, in _handle_changes
        File "nxdrive/engine/watcher/remote_watcher.pyc", line 417, in _partial_full_scan
        File "nxdrive/engine/watcher/remote_watcher.pyc", line 146, in _scan_pair
        File "nxdrive/engine/watcher/remote_watcher.pyc", line 186, in _do_scan_remote
        File "nxdrive/engine/watcher/remote_watcher.pyc", line 250, in _scan_remote_scroll
        File "nxdrive/engine/watcher/remote_watcher.pyc", line 370, in _find_remote_child_match_or_create
        File "nxdrive/engine/dao/sqlite.pyc", line 1264, in update_remote_state
        File "nxdrive/engine/dao/sqlite.pyc", line 55, in execute
      IntegrityError: UNIQUE constraint failed: States.remote_ref, States.remote_parent_ref
      

        Attachments

        1. debug.log
          1.36 MB
          Rémi Cattiau
        2. ndrive_8f51e4e3f26d11e4b2fa98e0d9845aed.db
          11.11 MB
          Rémi Cattiau

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcattiau Rémi Cattiau
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: