-
Notifications
You must be signed in to change notification settings - Fork 805
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
Handle deletion of task during failover #976
Conversation
Adding awareness of failover info during transfer / timer task cleanup Note: missing persistence to database, the persistence to database of failover cursor should be done along with balk failover for performance.
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.
This looks good to me. You can merge it in after addressing my comment about keeping track of failover cursor as a separate field.
DomainNotificationVersion int64 | ||
} | ||
|
||
// TransferFailoverLevel contains corresponding start / end level | ||
TransferFailoverLevel struct { |
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 we also include CurrentLevel as a separate field to checkpoint current progress.
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.
sure
common/persistence/dataInterfaces.go
Outdated
} | ||
|
||
// TimerFailoverLevel contains domain IDs and corresponding start / end level | ||
TimerFailoverLevel struct { |
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 we also include CurrentLevel as a separate field to checkpoint current progress.
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.
sure
Note: missing persistence to database, the persistence to database of
failover cursor should be done along with balk failover for performance.
solve #972