Skip to content
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 crash when trying to use shortest path with a password predicate. #3662

Merged
merged 2 commits into from
Jul 12, 2019

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Jul 12, 2019

The crash happens because querying this predicate does not populate the
uid matrix, resulting in an out-of-index error. This fix just checks the
size of the uid matrix before trying to access it.

Fixes #3657


This change is Reviewable

The crash happens because querying this predicate does not populate the
uid matrix, resulting in an out-of-index error. This fix just checks the
size of the uid matrix before trying to access it.
@martinmr martinmr requested review from manishrjain and a team as code owners July 12, 2019 20:23
Copy link
Contributor

@campoy campoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small suggestion

query/shortest.go Outdated Show resolved Hide resolved
Co-Authored-By: Francesc Campoy <[email protected]>
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 2 files at r1, 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @martinmr)

@martinmr martinmr merged commit 60b2b15 into master Jul 12, 2019
@martinmr martinmr deleted the martinmr/shortest-password branch July 12, 2019 22:20
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 19, 2019
…dgraph-io#3662)

The crash happens because querying this predicate does not populate the
uid matrix, resulting in an out-of-index error. This fix just checks the
size of the uid matrix before trying to access it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Alpha crash with shortest path query with password predicate
3 participants