Skip to content
Open
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 @@ -334,8 +334,19 @@ public void updatePartitionLoadStats(int[] queueSizes, int[] partitionIds, Strin
// Invert and fold the queue size, so that they become separator values in the CFT.
invertAndFoldQueueSizeArray(queueSizes, maxSizePlus1, length);

log.trace("Partition load stats for topic {}: CFT={}, IDs={}, length={}",
topic, queueSizes, partitionIds, length);
if (log.isTraceEnabled()) {
if (rackAware) {
assert partitionLoadStatsInThisRack != null;
log.trace(
"Partition load stats for topic {}: CFT={}, IDs={}, length={}; in producer rack: CFT={}, IDs={}, length={}",
topic,
queueSizes, partitionIds, length,
partitionLoadStatsInThisRack.cumulativeFrequencyTable, partitionLoadStatsInThisRack.partitionIds, partitionLoadStatsInThisRack.length);
} else {
log.trace("Partition load stats for topic {}: CFT={}, IDs={}, length={}",
topic, queueSizes, partitionIds, length);
}
}
partitionLoadStatsHolder = new PartitionLoadStatsHolder(
new PartitionLoadStats(queueSizes, partitionIds, length),
partitionLoadStatsInThisRack
Expand Down