Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Inconsistent element count commig after store call #686

@helenoalves

Description

@helenoalves

Hi Microstream Team,

I`m using microstream and receiving this error on the log from time to time: Inconsistent element count: specified 2 vs. iterated 8756688418745

For sure, with a different number of specified and iterated.
It happens on the part of code that I call store method of one collection.

I made several changes to this collection, such as removing and adding elements in a map that contains two nested Queues as values.

This is the microstream part of the code I have found this error:

if(address != elementsBinaryBound || iterator.hasNext())

I need two answers about it:

  1. How can I reproduce it in Unit Testing?
  2. Is there some approach that I should follow to overcome this issue? As calling storeRoot every time I change the root collection.

Looking forward to your support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions