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

Failure testDeleteWithActiveLiveQueriesAndReplicators

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0
    • iOS
    • Security Level: Public
    • None
    • 3

    Description

      Fails inconsistently on Jenkins job:

      Unit test fails:

      couchbase-lite-ios-ee 18:37:01 $ grep "Received C4ReplicatorStatus Changed" ~/Desktop/testDeleteWithActiveLiveQueriesAndReplicators.txt 
      2020-11-17 15:43:42.001161-0800 CBL_EE_Tests[87402:11940365] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 2 (state = 6)
      2020-11-17 15:43:42.010022-0800 CBL_EE_Tests[87402:11938762] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 2 (state = 6)
      2020-11-17 15:43:42.058119-0800 CBL_EE_Tests[87402:11939033] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 6)
      2020-11-17 15:43:42.078595-0800 CBL_EE_Tests[87402:11938720] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 6)
      2020-11-17 15:43:42.230774-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 3 (state = 5)
      2020-11-17 15:43:42.250556-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 3 (state = 5)
      2020-11-17 15:43:42.254012-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 5)
      2020-11-17 15:43:42.259281-0800 CBL_EE_Tests[87402:11940365] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 1)
      2020-11-17 15:43:42.262758-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 3 (state = 1)
      2020-11-17 15:43:42.272738-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 1)
      2020-11-17 15:43:42.281134-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 0 (state = 1)
      2020-11-17 15:43:42.303538-0800 CBL_EE_Tests[87402:11938720] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 0 (state = 1)
      

      Replicators status/states are as follows. Assuming each repeated status /state belongs to
      #1 and #2 replicators.
      1. connecting/starting
      2. connecting/starting
      3. busy/starting
      4. busy/starting
      5. idle/running
      6. idle/running
      7. busy/running
      8. busy/stopping
      9. idle/stopping
      10. stopped/stopping
      11. stopped/stopping

      Looks like the step 7. `busy/running` shows the replicator is running again, which causes it to go back to `idle` state after that, which causes the expectation to hit twice.

      Attachments

        Issue Links

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

          Activity

            Jayahari.Vavachan Jay Vavachan created issue -
            Jayahari.Vavachan Jay Vavachan made changes -
            Field Original Value New Value
            Description Unit test fails:

            {code}
            couchbase-lite-ios-ee 18:37:01 $ grep "Received C4ReplicatorStatus Changed" ~/Desktop/testDeleteWithActiveLiveQueriesAndReplicators.txt
            2020-11-17 15:43:42.001161-0800 CBL_EE_Tests[87402:11940365] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 2 (state = 6)
            2020-11-17 15:43:42.010022-0800 CBL_EE_Tests[87402:11938762] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 2 (state = 6)
            2020-11-17 15:43:42.058119-0800 CBL_EE_Tests[87402:11939033] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 6)
            2020-11-17 15:43:42.078595-0800 CBL_EE_Tests[87402:11938720] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 6)
            2020-11-17 15:43:42.230774-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 3 (state = 5)
            2020-11-17 15:43:42.250556-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 3 (state = 5)
            2020-11-17 15:43:42.254012-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 5)
            2020-11-17 15:43:42.259281-0800 CBL_EE_Tests[87402:11940365] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 1)
            2020-11-17 15:43:42.262758-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 3 (state = 1)
            2020-11-17 15:43:42.272738-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 1)
            2020-11-17 15:43:42.281134-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 0 (state = 1)
            2020-11-17 15:43:42.303538-0800 CBL_EE_Tests[87402:11938720] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 0 (state = 1)
            {code}

            Replicators status/states are as follows. Assuming each repeated status /state belongs to
            #1 and #2 replicators.
            1. connecting/starting
            2. connecting/starting
            3. busy/starting
            4. busy/starting
            5. idle/running
            6. idle/running
            7. busy/running
            8. busy/stopping
            9. idle/stopping
            10. stopped/stopping
            11. stopped/stopping

            Looks like the step 7. `busy/running` shows the replicator is running again, which causes it to go back to `idle` state after that, which causes the expectation to hit twice.
            Fails inconsistently on Jenkins job:

            Unit test fails:

            {code}
            couchbase-lite-ios-ee 18:37:01 $ grep "Received C4ReplicatorStatus Changed" ~/Desktop/testDeleteWithActiveLiveQueriesAndReplicators.txt
            2020-11-17 15:43:42.001161-0800 CBL_EE_Tests[87402:11940365] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 2 (state = 6)
            2020-11-17 15:43:42.010022-0800 CBL_EE_Tests[87402:11938762] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 2 (state = 6)
            2020-11-17 15:43:42.058119-0800 CBL_EE_Tests[87402:11939033] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 6)
            2020-11-17 15:43:42.078595-0800 CBL_EE_Tests[87402:11938720] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 6)
            2020-11-17 15:43:42.230774-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 3 (state = 5)
            2020-11-17 15:43:42.250556-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 3 (state = 5)
            2020-11-17 15:43:42.254012-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 5)
            2020-11-17 15:43:42.259281-0800 CBL_EE_Tests[87402:11940365] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 1)
            2020-11-17 15:43:42.262758-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 3 (state = 1)
            2020-11-17 15:43:42.272738-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 4 (state = 1)
            2020-11-17 15:43:42.281134-0800 CBL_EE_Tests[87402:11940368] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 0 (state = 1)
            2020-11-17 15:43:42.303538-0800 CBL_EE_Tests[87402:11938720] CouchbaseLite Replicator Debug: CBLReplicator[<*> DB[otherdb]]: Received C4ReplicatorStatus Changed, status = 0 (state = 1)
            {code}

            Replicators status/states are as follows. Assuming each repeated status /state belongs to
            #1 and #2 replicators.
            1. connecting/starting
            2. connecting/starting
            3. busy/starting
            4. busy/starting
            5. idle/running
            6. idle/running
            7. busy/running
            8. busy/stopping
            9. idle/stopping
            10. stopped/stopping
            11. stopped/stopping

            Looks like the step 7. `busy/running` shows the replicator is running again, which causes it to go back to `idle` state after that, which causes the expectation to hit twice.
            Jayahari.Vavachan Jay Vavachan made changes -
            Link This issue blocks CBL-1315 [ CBL-1315 ]
            daniel.petersen Daniel Petersen made changes -
            Issue Type Task [ 3 ] Improvement [ 4 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Link This issue blocks CBL-1267 [ CBL-1267 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            Jayahari.Vavachan Jay Vavachan made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              The Lite The Lite
              Jayahari.Vavachan Jay Vavachan
              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