Class MultiTenancyMigration

java.lang.Object
io.camunda.zeebe.engine.state.migration.to_8_3.MultiTenancyMigration
All Implemented Interfaces:
MigrationTask

public class MultiTenancyMigration extends Object implements MigrationTask
This migration is used to extend the data with tenant information. Before this migration, no tenant information was stored in the state. Therefore, we're considering all existing data to be part of the default tenant.

This migration will set the tenant id of all existing data to the default tenant id. Both in values and in keys. When the key has changed, the data is moved to a new column family.

  • Constructor Details

    • MultiTenancyMigration

      public MultiTenancyMigration()
  • Method Details

    • getIdentifier

      public String getIdentifier()
      Description copied from interface: MigrationTask
      Returns identifier for the migration task.

      The identifier is used for logging.

      In the future, it might also be used to store the migrations that were run in persistent state

      Specified by:
      getIdentifier in interface MigrationTask
      Returns:
      identifier for the migration task
    • runMigration

      public void runMigration(MutableProcessingState processingState)
      Description copied from interface: MigrationTask
      Implementations of this method perform the actual migration
      Specified by:
      runMigration in interface MigrationTask
      Parameters:
      processingState - the mutable Zeebe state