Skip to content

Commit

Permalink
feat: add partitionId to ZeebePartition context
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelldon committed Sep 22, 2021
1 parent a1b31c4 commit d35fa57
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import io.camunda.zeebe.util.startup.StartupStep;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.slf4j.Logger;

Expand Down Expand Up @@ -94,6 +95,13 @@ public PartitionAdminAccess createAdminAccess() {
return new ZeebePartitionAdminAccess(actor, adminControl);
}

@Override
protected Map<String, String> createContext() {
final var actorContext = super.createContext();
actorContext.put(ACTOR_PROP_PARTITION_ID, Integer.toString(context.getPartitionId()));
return actorContext;
}

@Override
public String getName() {
return actorName;
Expand Down

0 comments on commit d35fa57

Please sign in to comment.