alibaba / alibaba/DataX

core模块中的distributeTasksToTaskGroup()方法注释有误

Open
#180 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

```
* 计算: 总channel数为:1000M/s / 3M/s =
* 333个,为平均分配,计算可知有308个每个channel有3个tasks,而有25个每个channel有4个tasks,
* 需要的taskGroup数为:333 / 7 =
* 47...4,也就是需要48个taskGroup,47个是每个负责7个channel,有4个负责1个channel
*


* 处理:我们先将这负责4个channel的taskGroup处理掉,逻辑是:
* 先按平均为3个tasks找4个channel,设置taskGroupId为0,
* 接下来就像发牌一样轮询分配task到剩下的包含平均channel数的taskGroup中
```
这里应该是47个taskgroup负责7个channel,有1个taskgroup负责4个channel。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the core module's distributeTasksToTaskGroup() method and read the surrounding comment. Verify the task-group arithmetic described in the issue, then correct the inaccurate wording so it states that 47 task groups handle 7 channels and one handles 4 channels. Done means the comment matches the described distribution.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.