Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-8237

Certain cautions should be documented for database.close()

    XMLWordPrintable

Details

    • 0.5

    Description

      The `IllegalStateException: Attempt to perform an operation on a closed database.` exception would likely generate if the user closed the database immediately after starting the replicator:

      replicator.start();
      database.close();
      

      Although this use case is very unlikely to occur, we should document why this exception is thrown and how can the user troubleshoot this scenario and fix it. Few places where we might want to consider documenting this are:

      https://docs.couchbase.com/couchbase-lite/current/java/advance/java-p2psync-websocket-using-active.html#configure-replicator
      https://docs.couchbase.com/couchbase-lite/current/android/product/java-android-releasenotes.html
      http://docs.couchbase.com/mobile/2.8.0/couchbase-lite-android/index.html?com/couchbase/lite/Database.html#close--

      Attachments

        Issue Links

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

          Activity

            People

              Ian.bridge Ian Bridge
              yuvraj.kanwar Yuvraj Kanwar
              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