You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user uses a short session to write data, it starts from 0 each time, so the data can only be written to a fixed partition, which causes an imbalance problem.
className:
RoundRobinPartitionRouter.class
code:
```
AtomicInteger newCounter = new AtomicInteger(0);
```
solution:
```
AtomicInteger newCounter = new AtomicInteger(new Random().nextInt());
When a user uses a short session to write data, it starts from 0 each time, so the data can only be written to a fixed partition, which causes an imbalance problem.
className:
RoundRobinPartitionRouter.class
code:
```
AtomicInteger newCounter = new AtomicInteger(0);
```
solution:
```
AtomicInteger newCounter = new AtomicInteger(new Random().nextInt());
```
JIRA link - [INLONG-555] created by lenoThe text was updated successfully, but these errors were encountered: