Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ private void resetToNormalReplication() {
private void processCompletedPartitions() {
currentlyReplicatingPriorityPartitions.stream().filter(this::hasCompletedReplication).forEach(completedPartitions::add);

replicationPrioritizationMetrics.recordPartitionReplicationComplete(completedPartitions.size());
// Remove completed partitions from current set
currentlyReplicatingPriorityPartitions.removeAll(completedPartitions);
replicationPrioritizationMetrics.updateCurrentlyReplicatingPriorityPartitions(currentlyReplicatingPriorityPartitions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@ public void recordPartitionReplicationComplete() {
partitionsCompletedCount.inc();
}

/**
* Record completion of replication for a partition.
*/
public void recordPartitionReplicationComplete(int numPartitions) {
partitionsCompletedCount.inc(numPartitions);
}

/**
* Record addition of partitions to high priority replication.
* @param newHighPriorityPartitions The partitions added to high priority.
Expand Down
Loading