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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Beryllium
    • Beryllium
    • iOS
    • Security Level: Public
    • None
    • 1

    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

          Activity

            People

              pasin Pasin Suriyentrakorn
              pasin Pasin Suriyentrakorn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty