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

Marking subscriptions complete can cause a crash with realm::KeyNotFound after a client reset

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

      SessionWrapper reads the state of the SubscriptionStore when it is created, but this state can change after a client reset (when then state of existing subscription may change, in addition to new subscriptions being created and old subscriptions being removed). This can cause a crash with realm::KeyNotFound when trying to update a subscription which does not exist anymore (https://evergreen.mongodb.com/task_log_raw/realm_core_stable_ubuntu2004_arm64_baas_integration_tests_patch_0857dbdf5a6c063df776790cccba4a57fdb25e2d_653d959a2fbabe3ddbb485a2_23_10_28_23_14_53/0?type=T&text=true).

            Assignee:
            daniel.tabacaru@mongodb.com Daniel Tabacaru
            Reporter:
            daniel.tabacaru@mongodb.com Daniel Tabacaru
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: