-
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
Regression with queries that use value variables causing panics #3470
Comments
Seems like the issue is caused by ef24567 which tries to assign a value to the map The change in ef24567 seems to have been made to counteract the behavior introduced in 18d8d25 which started throwing errors when Also, the correct behaviour for these queries should be an empty value. |
This fixes #3470. Test cases have been added to verify the fix. The default case in fillVars seemed hacky because it was assigning a value corresponding to uid 0 in uidToVal, that has been removed and appropriate changes have been made at other places.
This fixes #3470. Test cases have been added to verify the fix. The default case in fillVars seemed hacky because it was assigning a value corresponding to uid 0 in uidToVal, that has been removed and appropriate changes have been made at other places.
This fixes #3470. Test cases have been added to verify the fix. The default case in fillVars seemed hacky because it was assigning a value corresponding to uid 0 in uidToVal, that has been removed and appropriate changes have been made at other places.
This fixes hypermodeinc#3470. Test cases have been added to verify the fix. The default case in fillVars seemed hacky because it was assigning a value corresponding to uid 0 in uidToVal, that has been removed and appropriate changes have been made at other places.
If you suspect this could be a bug, follow the template.
All experiments run with Dgraph Docker images from Docker Hub
dgraph/dgraph:master
dgraph/dgraph:v1.0.15-rc9
dgraph/dgraph:v1.0.14
dgraph/dgraph:v1.0.13
dgraph/dgraph:v1.0.12
dgraph/dgraph:v1.0.11
Yes, see versions listed above.
1 Zero, 1 Alpha - 4 GB - Linux
3 Zero, 3 Alpha - Lots of memory - Linux
Commands to start local 1 Zero, 1 Alpha cluster.
Schema.
Query to get the highest available number value.
Another query to get the highest available number value.
The queries above, when run against a Dgraph cluster without any loaded data, should yield an empty list.
dgraph/dgraph:v1.0.11 returns an empty list appropriately
all other versions panic and the alpha crashes.
Error message yielded in client.
Error message from alpha logs.
Issues that seem relevant:
The text was updated successfully, but these errors were encountered: