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(postingList): Acquire lock before reading the cached posting list #7632

Merged
merged 2 commits into from
Mar 30, 2021

Conversation

jarifibrahim
Copy link
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 pushed 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 <[email protected]>
(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 <[email protected]>
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 <[email protected]>
(cherry picked from commit 3f9effa)

Co-authored-by: Ibrahim Jarif <[email protected]>
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