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

Cleanup bundle folder when creating a database fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.0
    • 3.0
    • LiteCore
    • Security Level: Public
    • None
    • Jianmin 64
    • 3

    Description

      When creating a new database, if somehow a failure happens after a bundle folder is created, an empty bundle folder will be left behind. As a result, when trying to create a database again later, "WrongFormat" will always be thrown.

      Basically if a failure happens after the following line when creating a database, the empty bundle folder will be left behind:

      https://github.com/couchbase/couchbase-lite-core/blob/master/LiteCore/Database/DatabaseImpl.cc#L122

      Attachments

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

        Activity

          People

            jianmin.zhao Jianmin Zhao
            pasin Pasin Suriyentrakorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty