Work Manager Replication thows on Replication complete (Beryllium)

Description

Calling `cancel()` on the context to end the flow, causes `runBlocking` the throw an interrupted exception, and thus the failure of the worker.

Moving most of the logic from the `collect` call, to a `map` and introducing a `takeWhile` is more elegant, and does not generate the exception

Activity

Show:

CB robot March 17, 2023 at 4:33 PM

Build couchbase-lite-android-3.2.0-3 contains couchbase-lite-java-ee-root commit 39f7339 with commit message:
: WorkManager Replication tests and fixes (#97)

CB robot March 17, 2023 at 4:33 PM

Build couchbase-lite-android-3.2.0-3 contains couchbase-lite-java-common commit 40ee6df with commit message:
: WorkManager Replication tests and fixes (#166)

CB robot March 17, 2023 at 4:33 PM

Build couchbase-lite-android-3.2.0-3 contains couchbase-lite-java-ce commit 4a0fe6c with commit message:
: WorkManager Replication tests and fixes

CB robot March 17, 2023 at 4:18 PM

Build couchbase-lite-java-3.2.0-3 contains couchbase-lite-java-ee-root commit 39f7339 with commit message:
: WorkManager Replication tests and fixes (#97)

CB robot March 17, 2023 at 4:18 PM

Build couchbase-lite-java-3.2.0-3 contains couchbase-lite-java-common commit 40ee6df with commit message:
: WorkManager Replication tests and fixes (#166)

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

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created March 13, 2023 at 5:18 PM
Updated August 31, 2024 at 10:56 AM
Resolved July 23, 2024 at 11:36 PM
Instabug