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 @@ -187,12 +187,10 @@ Map<String, PartitionAssignment> buildAssignment(
String currentKey = null;
long keyRemainingWeight = 0L;
long subtaskRemainingWeight = targetWeightPerSubtask;
// todo: 计算assigned 的 subtasks 列表,并计算每个subtask的 weight
List<Integer> assignedSubtasks = new ArrayList<>();
List<Long> subtaskWeights = new ArrayList<>();
while (mapKeyIterator.hasNext() || currentKey != null) {
// This should never happen because target weight is calculated using ceil function.
// todo: numPartitions是下游的所有id
if (subtaskId >= downstreamParallelism) {
LOG.error(
"Internal algorithm error: exhausted subtasks with unassigned keys left. number of partitions: {}, "
Expand Down