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

Avoiding deletion of all tagged events in rollback #202

Closed
xirc opened this issue Apr 10, 2023 · 0 comments · Fixed by #203
Closed

Avoiding deletion of all tagged events in rollback #202

xirc opened this issue Apr 10, 2023 · 0 comments · Fixed by #203
Labels
enhancement New feature or request
Milestone

Comments

@xirc
Copy link
Contributor

xirc commented Apr 10, 2023

This is required for #201.

rollback-tool-cassandra (v2.2.0) deletes all tagged events (events of tag_view) and rebuilds them:
https://github.com/lerna-stack/akka-entity-replication/blob/v2.2.0/rollback-tool-cassandra/src/main/scala/lerna/akka/entityreplication/rollback/cassandra/CassandraPersistentActorRollback.scala#L76-L77. The old events deletion feature deletes source events, which are required to rebuild tag_view completely. The rollback of tag_view has to be achieved while it avoids deleting all tagged events. This rollback might be achieved by updating tag-related tables (tag_view, tag_write_progress, tag_scanning): https://doc.akka.io/docs/akka-persistence-cassandra/1.0.5/journal.html#schema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant