Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-1141

Android cannot use unlinked files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.8.0
    • 2.7.1
    • LiteCore
    • Security Level: Public
    • None
    • 5

    Description

      On Unix (and by extension Android) the default thing SQLite does with temporary files is unlink them as soon as they are created so that even if the process crashes they are cleaned up.  However, Android doesn't seem capable of consistently handling this mode and returns errors for filesystem operations on such files.   This can be reproduced by creating a reasonably large database file (> 100 MB) and then creating and index on it.  Smaller databases won't show the behavior since SQLite only uses temporary files when it doesn't have enough memory to perform its operations.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jimb Jim Borden
              jimb Jim Borden
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty