Skip to content

fix: Prevent proposal from being dropped accidentally#7741

Merged
jarifibrahim merged 4 commits intomasterfrom
ibrahim/proposal-unique
Apr 26, 2021
Merged

fix: Prevent proposal from being dropped accidentally#7741
jarifibrahim merged 4 commits intomasterfrom
ibrahim/proposal-unique

Conversation

@jarifibrahim
Copy link
Copy Markdown
Contributor

@jarifibrahim jarifibrahim commented Apr 21, 2021

Each proposal in alpha has a unique key but this unique key is not
guaranteed to be unique. We could end up creating duplicate keys and
these duplicate keys would get ignored in the raft loop.

This PR proposes a different way of creating the proposal keys so that
they are always unique.

Fixes - DGRAPH-3012


This change is Reviewable

Each proposal in alpha has a unique key but this unique key is not
guaranteed to be unique. We could end up creating duplicate keys and
these duplicate keys would get ignored in the raft loop.

This PR proposes a different way of creating the proposal keys so that
they are always unique.

Fixes - DGRAPH-3012
Copy link
Copy Markdown
Contributor

@NamanJain8 NamanJain8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make this change in zero's unique key too?

Comment thread worker/proposal.go Outdated
Copy link
Copy Markdown
Contributor

@ahsanbarkati ahsanbarkati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Co-authored-by: Naman Jain <naman@dgraph.io>
@jarifibrahim
Copy link
Copy Markdown
Contributor Author

Should we make this change in zero's unique key too?

@NamanJain8 zero doesn't get that many proposals so we wouldn't have the problem of duplicate keys.

@jarifibrahim jarifibrahim merged commit 986b7f6 into master Apr 26, 2021
@jarifibrahim jarifibrahim deleted the ibrahim/proposal-unique branch April 26, 2021 15:35
danielmai pushed a commit that referenced this pull request May 13, 2021
Each proposal in alpha has a unique key but this unique key is not
guaranteed to be unique. We could end up creating duplicate keys and
these duplicate keys would get ignored in the raft loop.

This PR proposes a different way of creating the proposal keys so that
they are always unique.

Fixes - DGRAPH-3012
danielmai pushed a commit that referenced this pull request May 13, 2021
Each proposal in alpha has a unique key but this unique key is not
guaranteed to be unique. We could end up creating duplicate keys and
these duplicate keys would get ignored in the raft loop.

This PR proposes a different way of creating the proposal keys so that
they are always unique.

Fixes - DGRAPH-3012
danielmai pushed a commit that referenced this pull request May 13, 2021
Each proposal in alpha has a unique key but this unique key is not
guaranteed to be unique. We could end up creating duplicate keys and
these duplicate keys would get ignored in the raft loop.

This PR proposes a different way of creating the proposal keys so that
they are always unique.

Fixes - DGRAPH-3012
danielmai pushed a commit that referenced this pull request May 13, 2021
Each proposal in alpha has a unique key but this unique key is not
guaranteed to be unique. We could end up creating duplicate keys and
these duplicate keys would get ignored in the raft loop.

This PR proposes a different way of creating the proposal keys so that
they are always unique.

Fixes - DGRAPH-3012
slotlocker2 pushed a commit that referenced this pull request May 13, 2021
Each proposal in alpha has a unique key but this unique key is not
guaranteed to be unique. We could end up creating duplicate keys and
these duplicate keys would get ignored in the raft loop.

This PR proposes a different way of creating the proposal keys so that
they are always unique.

Fixes - DGRAPH-3012

Co-authored-by: Ibrahim Jarif <ibrahim@dgraph.io>
NamanJain8 pushed a commit that referenced this pull request May 19, 2021
Each proposal in alpha has a unique key but this unique key is not
guaranteed to be unique. We could end up creating duplicate keys and
these duplicate keys would get ignored in the raft loop.

This PR proposes a different way of creating the proposal keys so that
they are always unique.

Fixes - DGRAPH-3012

Co-authored-by: Ibrahim Jarif <ibrahim@dgraph.io>
danielmai added a commit that referenced this pull request May 20, 2021
Cherry-pick of #7741 to release/v20.11.

Each proposal in alpha has a unique key but this unique key is not
guaranteed to be unique. We could end up creating duplicate keys and
these duplicate keys would get ignored in the raft loop.

This PR proposes a different way of creating the proposal keys so that
they are always unique.

Fixes - DGRAPH-3012, CLOUD-376.

Co-authored-by: Ibrahim Jarif <ibrahim@dgraph.io>
danielmai added a commit that referenced this pull request May 20, 2021
Cherry-pick of #7741 to release/v21.03.

Each proposal in alpha has a unique key but this unique key is not
guaranteed to be unique. We could end up creating duplicate keys and
these duplicate keys would get ignored in the raft loop.

This PR proposes a different way of creating the proposal keys so that
they are always unique.

Fixes - DGRAPH-3012, CLOUD-376.

Co-authored-by: Ibrahim Jarif <ibrahim@dgraph.io>
@NamanJain8 NamanJain8 mentioned this pull request Jun 8, 2021
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.

3 participants