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

Implement the "add index" GTaskFlowHandle. #42045

Closed
2 tasks
zimulala opened this issue Mar 9, 2023 · 0 comments
Closed
2 tasks

Implement the "add index" GTaskFlowHandle. #42045

zimulala opened this issue Mar 9, 2023 · 0 comments
Assignees
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@zimulala
Copy link
Contributor

zimulala commented Mar 9, 2023

The interface to be implemented

type GTaskFlowHandle interface {
   Progress(d Dispatch, gTask *proto.Task, fromPending bool) (finished bool, subtasks []*proto.Subtask, err error)
   HandleError(d Dispatch, gTask *proto.Task, receive string) (meta proto.SubTaskMeta, err error)
}

Implement

Progress

Backfill Step

StepOne
Split task to subtask by partitionTableID
Add subtasks

Merge Step

StepTwo
Split task to subtask by partitionTableID
Add subtasks

HandleError

Rollback at StepOne
Rollback at StepTwo

Tasks

  • Implement the "add index" GTaskFlowHandle for step one

Implement
Progress: StepOne
HandleError: Rollback at StepOne

  • Implement the "add index" GTaskFlowHandle for step two

Implement
Progress: StepTwo
HandleError: Rollback at StepTwo

Reference

example/dispatcher.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants