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

Cannot delete database, even after the replicator stopped

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.8.0
    • 2.8.0
    • LiteCore
    • Security Level: Public
    • None
    • CBL Sprint 16
    • 5

    Description

      Cannot delete the database even after the replicator is stopped.

      Steps
      1. Create a one shot replicator
      2. Let it finish replicating.
      3. After its finished, try deleting the target database.

      Unit test

      - (void)test {
          id target = [[CBLDatabaseEndpoint alloc] initWithDatabase: otherDB];
          id config = [self configWithTarget: target type: kCBLReplicatorTypePush continuous: NO];
          [self run: config errorCode: 0 errorDomain: nil];
          
          NSError* err;
          Assert([self.db delete: &err]);
      }
      

      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
              Jayahari.Vavachan Jay Vavachan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty