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

Hand copy of DB produces corrupt database

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Beryllium
    • 3.0.2
    • Java-Android
    • Security Level: Public
    • None
    • JAK 109
    • 4

    Description

      In forum post:
      https://www.couchbase.com/forums/t/prebuilt-database-copy-not-completing/33144/49

      David Shyu states that step #5 in the following sequence produces a "DB is corrupt" exception:

      1. After all data is synced, use terminal commands to pull cblite2 folders and copy them to external storage so I can access them outside of the app context.
      2. After a reinstall of our app, the code initializes couchbase
      3. Sets the DatabaseConfiguration directory to a new directory in external storage
      4. Calls Database.copy, passing in the location of where I had pulled the cblite2 folders to
      5. Create new Database using the configuration and then creates indexes.

      Repro and either confirm or deny.

      Attachments

        Activity

          People

            blake.meike Blake Meike
            blake.meike Blake Meike
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty