Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
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());
```