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

LiteCore time out issues stray busy callback



    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • LiteCore
    • Security Level: Public
    • None


      This is affecting a test on .NET which checks to make sure that a replicator will give up in the face of a nonresponsive endpoint (i.e. with no server running).  It is failing because its retry count is setup to go back to 0 when the replicator goes back to busy.  It is falsely reporting busy often after the 2nd timeout but it is somewhat unclear why.  

      The reason it is going to busy is because of a workaround introduced previously to "finish processing messages after a disconnect".  So there is a flip to busy temporarily before the next "stop" as the replicator drains its mailbox.  For example while the event is running the following could be in the replicator mailbox:

      onClose (replicator)
      childChangedStatus (worker)
      childChangedStatus (worker)

      Because there are things in here the replicator calls back with busy and mistakenly resets the retry count.


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


          jimb Jim Borden created issue -
          jimb Jim Borden made changes -
          Field Original Value New Value
          Assignee Jim Borden [ jimb ] Jens Alfke [ jens ]
          jens Jens Alfke made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          jens Jens Alfke made changes -
          Actual Start 2019-06-18 13:46 (issue has been started)
          jens Jens Alfke made changes -
          Status In Progress [ 3 ] In Review [ 10107 ]
          Automated transition triggered when Jens Alfke created pull request #799 in GitHub -
          Status In Review [ 10107 ] In Progress [ 3 ]
          jens Jens Alfke made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          jens Jens Alfke made changes -
          Actual End 2019-06-21 11:45 (issue has been resolved)


            jens Jens Alfke
            jimb Jim Borden
            0 Vote for this issue
            3 Start watching this issue



              Gerrit Reviews

                There are no open Gerrit changes