Skip to content

.removeAll() freezes indefinitely #855

@Kashish-Sharma

Description

@Kashish-Sharma

#764 Issue Basics

  • ObjectBox version : 2.5.1, 3.0.0-alpha2
  • Reproducibility: always

Reproducing the bug

Description

When calling removeAll() on an Entity, DB operation freezes

Code

box.removeAll()

Entities

@Entity
data class MyEntity(
    @Id
    var id: Long? = null,
    @Uid(5199960888095114421L)
    var idA: Int? = null,
    @Uid(8980596607626398101L)
    var idB: String? = null,
    @Uid(8428670953150503097L)
    var idC: Int? = null
)

Misc

box.remove(box.all)

works

  • I'm calling all this in a worker
  • Earlier when enitites had a default values like " " for string etc, it worked, but now have made all such fields nullable with default null.
  • It works for the first time when app is installed ( In the worker, first removeAll and then put a list of entities), but when we sync again i.e. removeAll and put, it just freezes on removeAll
  • I'm also observing the DB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions