Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Realm gets deleted on Compact #3612

Closed
markusroessler opened this issue May 29, 2024 · 2 comments · Fixed by #3618
Closed

Realm gets deleted on Compact #3612

markusroessler opened this issue May 29, 2024 · 2 comments · Fixed by #3618

Comments

@markusroessler
Copy link

What happened?

All RealmObjects in a Realm are deleted on Compact when ShouldDeleteIfMigrationNeeded is set to true.
(Regression since 12.0.0)

Repro steps

Execute the NUnit-Test: https://github.com/markusroessler/RealmCompactBug/blob/main/RealmCompactBugTest/UnitTest1.cs
The test fails on line 41

Note: The test passes with Realm 11.7.0

Version

12.2.0

What Atlas Services are you using?

Local Database only

What type of application is this?

Console/Server

Client OS and version

Mac OS 14.5

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

Copy link

sync-by-unito bot commented May 29, 2024

➤ PM Bot commented:

Jira ticket: RNET-1151

@nirinchev
Copy link
Member

This is caused by realm/realm-core#7747.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants