-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix(race): fixing race condition with closer use + assign uids + bgindex test fix #7266
Conversation
c8b0fee
to
a0d8834
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reduce the number of changes.
a0d8834
to
970c21c
Compare
@@ -196,7 +196,7 @@ func (s *Server) AssignUids(ctx context.Context, num *pb.Num) (*pb.AssignedIds, | |||
|
|||
select { | |||
case <-ctx.Done(): | |||
return reply, ctx.Err() | |||
return &emptyAssignedIds, ctx.Err() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need to change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a race condition with the use of reply. This happens when ctx.Done was called but lease is still working to assign uids
@@ -19,109 +19,8 @@ services: | |||
source: ../../ee/acl/hmac-secret | |||
target: /secret/hmac | |||
read_only: true | |||
command: /gobin/dgraph alpha --my=alpha1:7080 --zero=zero1:5080,zero2:5080,zero3:5080 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this PR has 3 changes?
- closer fix
- Assign UID fix
- bgindex fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this PR has above three fix. let me change the description also
* fix(race): fixing race condition in localcache (#7140) * fixing race condition in localcache * name refactor * fixing race in pick postings + fixing race log in t.go (#7149) * fixing race condition in process subgraph (#7156) * fixing race condition in disk storage sync and save (#7263) * fixing bgindex + fix alpha z.closer (#7266)
This change is