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

fix: ChainIndex corrupted in consolidation #788

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

novoj
Copy link
Collaborator

@novoj novoj commented Feb 4, 2025

The bug manifests itself by incorrect predecessor value in io.evitadb.index.attribute.ChainIndex#elementStates comparing to real value stored in entity data. It seems that during consolidations predecessor of different element is stored to the state of discussed element. Unfortunatelly, the logic is quite complex and there are many cases where the state is updated with different values so it doesn't make sense to encapsulate inner map into more complex object because we'd still rely on proper inputs during updates.

Refs: #786

The bug manifests itself by incorrect predecessor value in `io.evitadb.index.attribute.ChainIndex#elementStates` comparing to real value stored in entity data. It seems that during consolidations predecessor of different element is stored to the state of discussed element. Unfortunatelly, the logic is quite complex and there are many cases where the state is updated with different values so it doesn't make sense to encapsulate inner map into more complex object because we'd still rely on proper inputs during updates.

Refs: #786
(cherry picked from commit db3d675)
@novoj novoj added the bug Something isn't working label Feb 4, 2025
@novoj novoj self-assigned this Feb 4, 2025
@novoj novoj merged commit 065880d into release_2024-11 Feb 4, 2025
1 check failed
@novoj novoj deleted the release_2024-11-786 branch February 4, 2025 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant