Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-1151

Realm gets deleted on Compact

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

      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

            Assignee:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: