-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix NO_LIMIT handling for key-value stores #3341
Conversation
Without fix could not reindex store with more than Integer.MAX_VALUE entries because `KeySelector.limit` is integer Signed-off-by: Pavel Ershov <owner.mad.epa@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you @mad !
If that is the problem, can't we then simply switch from integer to long? Also, is it possible (with reasonable effort) to write a test that shows this problem? |
I was trying to quickly switch from
I personally don't know how to write a meaningful test to check reindexing of |
Related to JanusGraph#3341 ( JanusGraph#3341 ) Signed-off-by: Oleksandr Porunov <alexandr.porunov@gmail.com>
Related to JanusGraph#3341 ( JanusGraph#3341 ) Signed-off-by: Oleksandr Porunov <alexandr.porunov@gmail.com>
I believe this PR fixes the issue. I didn't come up with a good test to verify the issue, but I was able to make a simple test which might be useful to understand the issue.
The last step fails in master and returns only 1000 elements.
Test which fails against latest Test is called: Notice that we can't include that test into this PR because that test assumes we modified core code to have starting count as I believe we should change all limits to |
Thanks for your detailed investigation and confirming that the changes here fix the problem with a test. I really didn't want to cause so much trouble with my question whether we could add a test here 😅 But we can definitely merge this from my side. |
Your comment about a test case and |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
Without fix could not reindex store with more than Integer.MAX_VALUE entries because
KeySelector.limit
is integerSigned-off-by: Pavel Ershov owner.mad.epa@gmail.com