Skip to content

fix(Dgraph): fix bug when deleting and adding to a single UID predicate in the same transaction. #6431

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

Merged
merged 3 commits into from
Sep 14, 2020

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Sep 9, 2020

the iterate method does not account for delete postings in the same transaction
so they have to be preserved manually. Otherwise, if a deletion and an add operation
to the same uid happen in the same predicate, the deletion operation is not
applied.

Fixes DGRAPH-1309


This change is Reviewable

@martinmr martinmr requested a review from a team September 9, 2020 20:38
@martinmr martinmr merged commit 56c8f3c into master Sep 14, 2020
@martinmr martinmr deleted the martinmr/uid-del-add branch September 14, 2020 19:47
danielmai pushed a commit that referenced this pull request Oct 16, 2020
…te in the same transaction. (#6431)

The iterate method does not account for delete postings in the same transaction
so they have to be preserved manually. Otherwise, if a deletion and an add operation
to the same uid happen in the same predicate, the deletion operation is not
applied.

Fixes DGRAPH-1309

(cherry picked from commit 56c8f3c)
parasssh pushed a commit that referenced this pull request Oct 16, 2020
…te in the same transaction. (#6431) (#6746)

The iterate method does not account for delete postings in the same transaction
so they have to be preserved manually. Otherwise, if a deletion and an add operation
to the same uid happen in the same predicate, the deletion operation is not
applied.

Fixes DGRAPH-1309

(cherry picked from commit 56c8f3c)

Co-authored-by: Martin Martinez Rivera <martinmr@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