Skip to content

release/v20.11: fix(subscriptions): fix subscription to use the kv with the max version #7355

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 1 commit into from
Jan 22, 2021

Conversation

NamanJain8
Copy link
Contributor

@NamanJain8 NamanJain8 commented Jan 22, 2021

Issue:
The last KV from the list received from subscription need not be the latest update. This is because of the KVs written at the top due to value log rewrites or due to rollups.
We were using the last KV from the updates received via subscription.

Fix:
Iterate over the KVs to get the KV with the latest version.

(cherry picked from commit 4a2bc36)


This change is Reviewable

…on (#7349)

Issue:
The last KV from the list received from subscription need not be the latest update. This is because of the KVs written at the top due to value log rewrites or due to rollups.
We were using the last KV from the updates received via subscription.

Fix:
Iterate over the KVs to get the KV with the latest version.

(cherry picked from commit 4a2bc36)
@github-actions github-actions bot added the area/graphql Issues related to GraphQL support on Dgraph. label Jan 22, 2021
@NamanJain8 NamanJain8 changed the title fix(subscriptions): fix subscription to use the kv with the max version release/v20.11: fix(subscriptions): fix subscription to use the kv with the max version Jan 22, 2021
@aman-bansal aman-bansal merged commit 26b5283 into release/v20.11 Jan 22, 2021
@aman-bansal aman-bansal deleted the naman/cp/fix-subscription branch January 22, 2021 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/graphql Issues related to GraphQL support on Dgraph.
Development

Successfully merging this pull request may close these issues.

2 participants