Skip to content

Commit

Permalink
feat: add partitionId to LogStreamImpl context
Browse files Browse the repository at this point in the history
(cherry picked from commit a1b31c4)
  • Loading branch information
Zelldon authored and github-actions[bot] committed Sep 24, 2021
1 parent e28cab3 commit 73077fa
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -29,6 +29,7 @@
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.BiConsumer;
import org.slf4j.Logger;
Expand Down Expand Up @@ -77,6 +78,13 @@ public final class LogStreamImpl extends Actor
readers = new ArrayList<>();
}

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

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

0 comments on commit 73077fa

Please sign in to comment.