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

Catch MemoryError in FileInfo.get_digest()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.3
    • Component/s: Local client

      Description

      Error

      Sentry Issue: NUXEO-DRIVE-120

      MemoryError: null
        File "nxdrive\engine\watcher\local_watcher.py", line 1167, in handle_watchdog_event
        File "nxdrive\engine\dao\sqlite.py", line 812, in insert_local_state
        File "nxdrive\client\local_client.py", line 119, in get_digest
      
      Watchdog exception
      

      This is a weird error, appeared one time. Perhaps a physical memory error.

      fix

      In that case, we should just return the same value as when an OSError is raised. The digest will be recomputed later.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 minutes
                5m