use of org.apache.kafka.metadata.PartitionRegistration in project kafka by apache.
the class TopicDelta method replay.
public void replay(PartitionChangeRecord record) {
PartitionRegistration partition = partitionChanges.get(record.partitionId());
if (partition == null) {
partition = image.partitions().get(record.partitionId());
if (partition == null) {
throw new RuntimeException("Unable to find partition " + record.topicId() + ":" + record.partitionId());
}
}
partitionChanges.put(record.partitionId(), partition.merge(record));
}
Aggregations