Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INLONG-555] short session data can only be written to a specific partition #1144

Closed
dockerzhang opened this issue Jul 28, 2021 · 0 comments
Closed

Comments

@dockerzhang
Copy link
Contributor

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 leno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant