Skip to content

Need a way to ensure the Realm instance on the sync client thread has been closed #5416

@beeender

Description

@beeender

SyncSessionStopPolicy::Immediately is supposed to close the Realm instance on the sync client thread before the close() call on the last Realm instance returned. But it seems it is not doing correctly.

This results:

  1. Realm.deleteRealm() cannot apply to synced Realm.
  2. RealmCache.doCreateRealmOrGetFromCache() for downloadRemoteChanges() cannot clean the Realm file if the downloading failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions