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

Assertion failure when stopping replicator while replicator is connecting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.0
    • 3.0
    • LiteCore
    • Security Level: Public
    • None
    • LiteCore 91
    • 2

    Description

      "Delete Database with Active Replicator" Test in CBL-C (Enterprise) is intermittently failed. The following is the log captured from Jenkins build for couchbaes-lite-c-debian-10.

      0:26:26 00:26:26.668594| error: Assertion failed: _driver && _driver->_peer (/home/couchbase/jenkins/workspace/couchbase-lite-c-debian10/couchbase-lite-c/vendor/couchbase-lite-core/Networking/BLIP/LoopbackProvider.hh:65, in connect)
       10:26:26 0 0x7fb76a1de396
       10:26:26 1 0x7fb76a1de3db
       10:26:26 2 0x7fb76a1de555
       10:26:26 3 0x7fb76a1de64a
       10:26:26 4 0x7fb767f1ab2f
       10:26:26 5 0x7fb767ca8fa3
       10:26:26 6 libc.so.6 clone + 63
       10:26:26 00:26:26.668691| warning: Caught exception in Actor BLIP[<-file:////tmp/CBL_C_tests/CBLtest.cblite2/]: Assertion failed: _driver && _driver->_peer
       10:26:26 * N8litecore14SQLiteDataFileE at 0x55c07ddf0080[6a3865e8 00007fb7 6a391180 00007fb7]
       10:26:26 * N8litecore4repl9RevFinderE (refCount=3) at 0x55c07ddf1290[6a389640 00007fb7 00000003 00000000]
       10:26:26 * N8litecore12DatabaseImplE (refCount=1) at 0x55c07de0d9e0[6a384b48 00007fb7 00000001 00000000]
       10:26:26 * N8litecore12DatabaseImplE (refCount=1) at 0x55c07de12750[6a384b48 00007fb7 00000001 00000000]
       10:26:26 * N8litecore14SQLiteDataFileE at 0x55c07de4b900[6a3865e8 00007fb7 6a391180 00007fb7]
       10:26:26 * N8litecore12DatabaseImplE (refCount=1) at 0x55c07de5ade0[6a384b48 00007fb7 00000001 00000000]
       10:26:26 * N8litecore14SQLiteDataFileE at 0x55c07de783b0[6a3865e8 00007fb7 6a391180 00007fb7]
       10:26:26 * N8litecore14CollectionImplE at 0x55c07de7b3d0[6a384a40 00007fb7 7de5ade0 000055c0]
       10:26:26 * N8litecore8DataFile6SharedE (refCount=1) at 0x55c07de7b4a0[6a386320 00007fb7 00000001 00000000]
       10:26:26 * N8litecore17C4LocalReplicatorE (refCount=1) at 0x55c07de810d0[6a387330 00007fb7 00000001 00000000]
       10:26:26 * N8litecore17C4LocalReplicatorE (refCount=1) at 0x55c07de810d0[6a387330 00007fb7 00000001 00000000]
       10:26:26 * N8litecore9websocket17LoopbackWebSocketE (refCount=1) at 0x55c07de82ce0[6a387310 00007fb7 7de7fbc4 000055c0]
       10:26:26 * N8litecore4repl8InserterE (refCount=1) at 0x55c07de95c40[6a389ac8 00007fb7 00000001 00000000]
       10:26:26 * N8litecore14CollectionImplE at 0x55c07deb0a90[6a384a40 00007fb7 7de12750 000055c0]
       10:26:26 * N8litecore14CollectionImplE at 0x55c07dee9f20[6a384a40 00007fb7 7de0d9e0 000055c0]
       10:26:26 * N8litecore4repl10ReplicatorE (refCount=7) at 0x55c07df53b30[6a387d98 00007fb7 00000007 00000000]
       10:26:26 * N8litecore4repl10ReplicatorE (refCount=7) at 0x55c07df53b30[6a387d98 00007fb7 00000007 00000000]
       10:26:26 * N8litecore4repl6PusherE (refCount=4) at 0x55c07dfb7dd0[6a389430 00007fb7 00000004 00000000]
       10:26:26 * N8litecore4repl6PullerE (refCount=4) at 0x55c07dfb8cc0[6a3892a8 00007fb7 00000004 00000000]
       10:26:26 * N8litecore8DataFile6SharedE (refCount=2) at 0x7fb758001460[6a386320 00007fb7 00000002 00000000]
       10:26:26 
       10:26:26 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       10:26:26 CBL_C_Tests is a Catch v2.13.3 host application.
       10:26:26 Run with -? for options
       10:26:26 
       10:26:26 
       -----------------------------------------------------------------------------------------------------------------------
       10:26:26 Close Database with Active Replicator
       10:26:26 
       -----------------------------------------------------------------------------------------------------------------------
       10:26:26 /home/couchbase/jenkins/workspace/couchbase-lite-c-debian10/couchbase-lite-c/test/DatabaseTest.cc:1642
       10:26:26 .......................................................................................................................

      I think the problem occurs when trying to stop the replicator while the replicator is in connecting state (slightly before connecting).

      Attachments

        Issue Links

          Activity

            People

              jianmin.zhao Jianmin Zhao
              pasin Pasin Suriyentrakorn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty