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

Bucket doesn't split elements into different partition #85

Open
awsqed opened this issue Aug 24, 2020 · 2 comments
Open

Bucket doesn't split elements into different partition #85

awsqed opened this issue Aug 24, 2020 · 2 comments

Comments

@awsqed
Copy link

awsqed commented Aug 24, 2020

When I run it on the server it doesn't return the expected result.
image

image

image

Smaller partition size for clearer demonstration (32 partitions):
image

EDIT: I'm using the main helper module, version 5.6.2, with a standalone plugin (version 5.6.4).

@Bestle
Copy link

Bestle commented Jan 24, 2022

https://github.com/lucko/helper/blob/master/helper/src/main/java/me/lucko/helper/bucket/AbstractBucket.java#L240

This is always 0 as sets contained are equal, so the only partitioning strategy that currently works is "RANDOM".

lucko added a commit that referenced this issue Jan 24, 2022
@lucko
Copy link
Owner

lucko commented Jan 24, 2022

Thanks for figuring it out - sorry I never got around to doing it myself.

I've added a fix above, let me know if that sorts it.

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

3 participants