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

Do not use type keys during tablet size calculation. #4517

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Jan 8, 2020

Currently, the keys used for storing types are used during the tablet
size calculation. This leads to an Alpha instructing Zero to delete the
tablet for this predicate. This is incorrect since type and predicate
names are not equivalent and types do not have an corresponding tablet.

The bug is mostly harmless but it could lead to issues if a type has the
same name as a predicate.

Fixes #4473


This change is Reviewable

Currently, the keys used for storing types are used during the tablet
size calculation. This leads to an Alpha instructing Zero to delete the
tablet for this predicate. This is incorrect since type and predicate
names are not equivalent and types do not have an corresponding tablet.

The bug is mostly harmless but it could lead to issues if a type has the
same name as a predicate.
@martinmr martinmr requested review from manishrjain and a team as code owners January 8, 2020 01:38
Copy link
Contributor

@danielmai danielmai left a comment

Choose a reason for hiding this comment

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

:lgtm:. With this PR, a rollup doesn't show any logs about the type being removed from the group.

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @manishrjain)

Copy link
Contributor

@mangalaman93 mangalaman93 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @manishrjain)

@manishrjain
Copy link
Contributor

LGTM. CC: @parasssh you might have a conflict.

@martinmr martinmr merged commit 0e34d57 into master Jan 9, 2020
@martinmr martinmr deleted the martinmr/tablet-type-size branch January 9, 2020 18:11
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.

Dgraph Alpha logs say types are being deleted
4 participants