-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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(rollups): Fix splits in roll-up #7609 #8297
Conversation
|
Fix(rollups): Fix splits in roll-up (#7609) Fix roll-up split generation by fixing the range of UIDs to keep in the first and second part of the split.
90e4800
to
2b1b8f5
Compare
@joshua-goldstein To recap, this PR only introduces a test, right? And that test exercises existing functionality with a "multi-part" list, right? |
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.
Hi Josh,
I just read through your comment in detail and it make sense. We are just taking in the test
Correct, we are just introducing a test here. And yes, that is correct, there is some commentary here regarding what is happening during rollups. In particular they mention that the posting list will be split up into multiple lists if it gets too big. |
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.
Looks good 👍
I was hoping this test addition would increase the coverage %, but it's kind of odd to see the coverage % to stay the same. I did validate the same in the run logs of the test, and this test did run
fyi @kevinmingtarja |
Hi @skrdgraph , posting lists are integrated deeply into Dgraph and there are already many tests covering them. There are many cases that need to be covered but if the methods are already tested elsewhere then checking additional cases wouldn't add to the test coverage metric, correct? Of course the issue here is that "test coverage" is a rough metric. |
That makes sense, retesting a tested function/method - with another test - doesn't increase the number. I was under the assumption that this was a new test we were bringing in to test a component that was un-tested. |
This looks good 👍 We can merge this |
Cherry-pick-7609
The old PR fixed an issue that arose after posting/list.go was significantly refactored when roaring bitmaps were incorporated. The previous team first implemented roaring and then wrote the sroar library to compress the posting lists. In 21.03 we are not using roaring nor sroar so this code should not be merged. However a new test was written that we can bring in.