-
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
1.1.0-rc3 @count index on reverse edge fails after exporting/importing database #3893
Comments
I compared the valid and the invalid exports, and they are identical, except for the order of n-quads. |
Would be nice to have automated tests around export and import. |
I had a look at this on request by @animesh2049. Here is a small program which reproduces the problem.
After running this program, the following query should return results but it doesn't.
Instead, this query returns a result.
The root cause of this issue is that reverse count index keys are not added to the conflict keys for a transaction. So concurrent updates go through fine although some of them should have aborted. I'll submit a fix for it. |
What version of Dgraph are you using?
1.1.6-rc3
What is the hardware spec (RAM, OS)?
Linux debian stable 16Go DDR
Steps to reproduce the issue (command/config used to run Dgraph).
Expected: Get only nodes with the requested count of reverse edges
Actual: Get any count
Using an old dgraph export doesn't produces the bug.
I will give @danielmai on slack the problematic export file.
The text was updated successfully, but these errors were encountered: