Skip to content

[hotfix] split number is not calculated correctly in CassandraSourse #23

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

Closed
wants to merge 2 commits into from

Conversation

kanazirsky
Copy link

Split number is not calculated correctly as estimateTableSize is always zero.
It happens because integer division is used in getRingFraction method which results to zero, regardless existed token ranges.

As a result CassandraSourse try to put tho whole table in single ArrayList, which doesn't fit in memory.

Copy link

boring-cyborg bot commented Jan 18, 2024

Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html)

@kanazirsky
Copy link
Author

the pr is replaced with #24 as it should have single commit only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant