realm-kotlin icon indicating copy to clipboard operation
realm-kotlin copied to clipboard

Correctly delete Realm file when initializing data or subscriptions fails.

Open cmelchior opened this issue 3 years ago • 0 comments

When initialData or initialSubscriptions throw an exception, we should delete the Realm file, so the logic can be retried, but this is currently difficult to achieve, especially for synchronized Realms due to the SyncClient holding on to Realm file handles.

Core will be providing a solution for this which we should adopt: https://github.com/realm/realm-core/pull/5540

cmelchior avatar May 30 '22 08:05 cmelchior