Skip to content

release/v1.2: fix(readPostingList): Return error instead of panic (#5877)#5908

Merged
parasssh merged 2 commits intorelease/v1.2from
ibrahim/r1.2-readpl
Jul 13, 2020
Merged

release/v1.2: fix(readPostingList): Return error instead of panic (#5877)#5908
parasssh merged 2 commits intorelease/v1.2from
ibrahim/r1.2-readpl

Conversation

@jarifibrahim
Copy link
Copy Markdown
Contributor

@jarifibrahim jarifibrahim commented Jul 9, 2020

We've seen some panics like "proto: illegal wireType 6" on trying to read the
posting lists. We haven't found the fix yet. The issue could be because badger
is returning incorrect values for the posting list. Since we haven't been able
to reproduce it, this is a stop-gap solution to return an error instead of
crashing dgraph.

This is not the fix, this will return an error instead of
causing a panic.

Fixes DGRAPH-1778

(cherry picked from commit f2773c8)


This change is Reviewable

Docs Preview: Dgraph Preview

We've seen some panics like "proto: illegal wireType 6" on trying to read the
posting lists. We haven't found the fix yet. The issue could be because badger
is returning incorrect values for the posting list. Since we haven't been able
to reproduce it, this is a stop-gap solution to return an error instead of
crashing dgraph.

This is not the fix, this will return an error instead of
causing a panic.

Fixes DGRAPH-1778

(cherry picked from commit f2773c8)
Copy link
Copy Markdown
Contributor

@martinmr martinmr left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @manishrjain and @martinmr)

@parasssh parasssh merged commit 4e31555 into release/v1.2 Jul 13, 2020
@jarifibrahim jarifibrahim deleted the ibrahim/r1.2-readpl branch July 14, 2020 07:24
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.

3 participants