-
Notifications
You must be signed in to change notification settings - Fork 41
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
perf: receive done #1428
perf: receive done #1428
Conversation
modular/receiver/receive_task.go
Outdated
log.CtxErrorw(ctx, "replicate piece unfinished", "task", task) | ||
err = ErrUnfinishedTask | ||
return nil, ErrUnfinishedTask | ||
// If it already have data, skip this check |
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.
can you refine the comment?
@@ -114,10 +114,18 @@ func (r *ReceiveModular) HandleDoneReceivePieceTask(ctx context.Context, task ta | |||
log.CtxErrorw(ctx, "failed to get checksum from db", "task", task, "error", err) | |||
return nil, ErrGfSpDBWithDetail("failed to get checksum from db, error: " + err.Error()) | |||
} | |||
skipInsertIntegrityMeta := false |
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.
please add comment on this newly introduced field
modular/receiver/receive_task.go
Outdated
@@ -137,7 +145,7 @@ func (r *ReceiveModular) HandleDoneReceivePieceTask(ctx context.Context, task ta | |||
} | |||
|
|||
setIntegrityTime := time.Now() | |||
if task.GetObjectInfo().GetIsUpdating() { | |||
if !skipInsertIntegrityMeta && task.GetObjectInfo().GetIsUpdating() { |
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.
Could you refine these conditions?
Description
receice interface idempotent processing