Skip to content

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

Merged
aman-bansal merged 1 commit intorelease/v20.11from
naman/cp/fix-subscription
Jan 22, 2021
Merged

release/v20.11: fix(subscriptions): fix subscription to use the kv with the max version#7355
aman-bansal merged 1 commit intorelease/v20.11from
naman/cp/fix-subscription

Conversation

@NamanJain8
Copy link
Copy Markdown
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