Need a way to ensure the Realm instance on the sync client thread has been closed
Author: beeenderCreated Oct 13, 2017Updated Jan 13, 2025
LabelsT-Bug
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:
Realm.deleteRealm()cannot apply to synced Realm.RealmCache.doCreateRealmOrGetFromCache()fordownloadRemoteChanges()cannot clean the Realm file if the downloading failed.
Source: realm/realm-java