Failure testDeleteWithActiveLiveQueriesAndReplicators

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

1
  • 18 Nov 2020, 03:00 AM

blocks

Activity

Show:

Jay Vavachan April 30, 2021 at 5:12 AM

This failure is not happening recently, hence closing this.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created November 18, 2020 at 3:06 AM
Updated April 30, 2021 at 5:13 AM
Resolved April 30, 2021 at 5:13 AM
Instabug