Open sirambd opened 2 years ago
Hi @sirambd
Yes, the transform
method should iterate all objects, but looking at the source code for it, I noticed that we might have a bug there if you delete the object being transformed (as in it might accidentally skip the next object).
I will look more into this and post an update.
@cmelchior Ok thank you, I will wait for your return
How frequently does the bug occur?
Sometimes
Description
We do a migration to embedded objects, and to do this we remove all orphans with the
transform
function, it works well until we notice that on some devices, we receive this exceptionAt least one object in 'class_Rights' does not have a backlink (data would get lost).
Wouldn't thetransform
function process all files in some cases? Or is the error due to something else?I've done a lot of tests without ever succeeding in reproducing it, but we do have customers with this problem, although it's a minority.
Here is our migration code:
Stacktrace & log output
Can you reproduce the bug?
Not yet
Reproduction Steps
No response
Version
10.8.0
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
Android 9
Build environment
Android Studio version: Android Studio Bumblebee | 2021.1.1 Android Build Tools version: ... Gradle version: gradle-7.1.1