Packages

final class Reconciliation extends AnyRef

For reconciling with tag_views table with the messages table. Can be used to fix data issues causes by split brains or persistence ids running in multiple locations.

Should not be run at the same time as an application.

To support running in the same system as a journal the tag writers actor would need to be shared and all the interleavings of the actor running at the same be considered.

API likely to change when a java/scaladsl is added.

Annotations
@ApiMayChange()
Source
Reconciliation.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Reconciliation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Reconciliation(systemProvider: ClassicActorSystemProvider)
  2. new Reconciliation(systemProvider: ClassicActorSystemProvider, settings: ReconciliationSettings)

Value Members

  1. def allTags(): Source[String, NotUsed]

    Returns all the tags in the journal.

    Returns all the tags in the journal. This is not an efficient query for Cassandra so it is better to calculate tags for calls to deleteTagViewForPersistenceId another way.

    Prefer to do batches of persistence ids at a time getting the tags just for that persistence id.

  2. def deleteTagViewForPersistenceIds(persistenceId: Set[String], tag: String): Future[Done]

    Scans the given tag and deletes all events for the provided persistence ids.

    Scans the given tag and deletes all events for the provided persistence ids. All events for a persistence id have to be deleted as not to leave gaps in the tag pid sequence numbers.

    As this has to scan the tag views table for the given tag it is more efficient to

  3. def rebuildAllPersistenceIds(): Future[Done]
  4. def rebuildTagViewForPersistenceIds(persistenceId: String): Future[Done]

    Assumes that the tag views table contains no elements for the given persistence ids Either because tag_views and tag_progress have truncated for this given persistence id or tag writing has never been enabled

  5. def tagsForPersistenceId(persistenceId: String): Future[Set[String]]

    Select all the tags for the given persistence id.

    Select all the tags for the given persistence id. This may not return tags that have just been used for the first time.

  6. def truncateTagView(): Future[Done]

    Truncate all tables and all metadata so that it can be rebuilt