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

Handle deletion of task during failover #976

Merged
merged 9 commits into from
Jul 24, 2018
Merged

Handle deletion of task during failover #976

merged 9 commits into from
Jul 24, 2018

Conversation

wxing1292
Copy link
Contributor

@wxing1292 wxing1292 commented Jul 18, 2018

  • Adding failover info persistence struct
  • 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.

solve #972

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.
@wxing1292 wxing1292 requested a review from samarabbas July 18, 2018 00:20
Copy link
Contributor

@samarabbas samarabbas left a 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 {
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

}

// TimerFailoverLevel contains domain IDs and corresponding start / end level
TimerFailoverLevel struct {
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

@wxing1292 wxing1292 merged commit 287a0da into master Jul 24, 2018
@wxing1292 wxing1292 deleted the failover-level branch July 24, 2018 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants