Skip to content

fix(postingList): Acquire lock before reading the cached posting list#7632

Merged
NamanJain8 merged 2 commits intorelease/v21.03from
ibrahim/postinglist-concurrent
Mar 30, 2021
Merged

fix(postingList): Acquire lock before reading the cached posting list#7632
NamanJain8 merged 2 commits intorelease/v21.03from
ibrahim/postinglist-concurrent

Conversation

@jarifibrahim
Copy link
Copy Markdown
Contributor

@jarifibrahim jarifibrahim commented Mar 22, 2021

The GetNew function may fetch the posting list from the cache. This
cached copy of the posting list might be still in use at other places
and so we need to acquire a lock on it before we read it.

Fixes DGRAPH-3200


This change is Reviewable

The GetNew function may fetch the posting list from the cache. This
cached copy of the posting list might be still in use at other places
and so we need to acquire a lock on it before we read it.
@NamanJain8 NamanJain8 merged commit 3f9effa into release/v21.03 Mar 30, 2021
@NamanJain8 NamanJain8 deleted the ibrahim/postinglist-concurrent branch March 30, 2021 12:15
NamanJain8 added a commit that referenced this pull request Mar 31, 2021
…#7632)

The GetNew function may fetch the posting list from the cache. This
cached copy of the posting list might be still in use at other places
and so we need to acquire a lock on it before we read it.

Co-authored-by: NamanJain8 <jnaman806@gmail.com>
(cherry picked from commit 3f9effa)
aman-bansal pushed a commit that referenced this pull request Apr 8, 2021
…#7632)

The GetNew function may fetch the posting list from the cache. This
cached copy of the posting list might be still in use at other places
and so we need to acquire a lock on it before we read it.

Co-authored-by: NamanJain8 <jnaman806@gmail.com>
NamanJain8 added a commit that referenced this pull request May 5, 2021
…#7632) (#7671)

The GetNew function may fetch the posting list from the cache. This
cached copy of the posting list might be still in use at other places
and so we need to acquire a lock on it before we read it.

Co-authored-by: NamanJain8 <jnaman806@gmail.com>
(cherry picked from commit 3f9effa)

Co-authored-by: Ibrahim Jarif <ibrahim@dgraph.io>
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.

2 participants