-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Sync
-
2 - S (<= 1 week)
-
5315
-
Not Needed
All async wait operations - Realm::get_synchronized_realm,wait_for_download_completion, get_state_change_notification will wait forever in the event of a session error. We should instead cancel the wait and propagate the error back to the waiter so that they can handle it. To repro, make an additive schema change when dev mode is off and call wait_for_upload_completion. The logs should say something like:
ending session with error: integrating changesets failed: additive schema change: adding schema for Realm table "Board", additive changes from clients are restricted when developer mode is disabled (ProtocolErrorCode=201)
But the wait callback will not be invoked.
- is depended on by
-
RNET-795 [Bug]: WaitForDownloadAsync() and WaitForUploadAsync() never return
- Closed
-
RNET-690 ProgressObservable should emit OnError when the session errors
- Closed
-
RNET-691 WaitForUpload/Download/GetInstanceAsync should fail with a client reset exception when one occurs
- Closed
- is duplicated by
-
RCORE-1027 SyncSession::wait_for_upload_completion does not return error if session is invalid
- Closed
- is related to
-
RCORE-1508 Clear out SubscriptionStore and cancel pending notifications upon rollback to PBS
- Closed
- related to
-
RCORE-1020 Flexible Sync: Creating objects without subscriptions pins flexible session as "pending"
- Closed