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

Close database might hang waiting for no active replicators or live queries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.1.6
    • 3.1.5
    • iOS
    • Security Level: Public
    • None
    • C-iOS 125
    • 2

    Description

      I have found this issue as testDeleteWithActiveReplicationsAndURLEndpointListener was hanged on Jenkins. I couldn't reproduce the issue locally but after reviewing the code, I think the problem can be described as below.

      In CBLDatabase's removeActiveStoppable: method, _closeCondition was notified without locking. So there could be a race condition with when _closeCondition is waiting for the broadcard signals and cause _closeCondition to wait forever.

      Attachments

        Issue Links

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

          Activity

            People

              pasin Pasin Suriyentrakorn
              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