Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1027

SyncSession::wait_for_upload_completion does not return error if session is invalid

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      While trying to write some unit tests for Kotlin around waiting for upload and download I discovered something that looks like a bug.

      1. Open a synchronized Realm
      2. Restart Sync on the server using the Admin API, this correctly triggers a session error handler.
      3. Attempt to call SyncSession: wait_for_upload_completion and SyncSession::wait_for_download_completion

      Expected result: I would expect the function to return some kind of error_code in the callback we provide.

      Actual result: It returns succesfully.

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            christian.melchior@mongodb.com Christian Melchior (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: