@@ -98,6 +98,9 @@ const (
9898 // ActionEncryptionKeyStatusUpdateDefaultTimeout define default timeout for action ActionEncryptionKeyStatusUpdate
9999 ActionEncryptionKeyStatusUpdateDefaultTimeout time.Duration = ActionsDefaultTimeout
100100
101+ // ActionEnforceResignLeadershipDefaultTimeout define default timeout for action ActionEnforceResignLeadership
102+ ActionEnforceResignLeadershipDefaultTimeout time.Duration = 2700 * time .Second // 45m0s
103+
101104 // ActionIdleDefaultTimeout define default timeout for action ActionIdle
102105 ActionIdleDefaultTimeout time.Duration = ActionsDefaultTimeout
103106
@@ -353,6 +356,9 @@ const (
353356 // ActionTypeEncryptionKeyStatusUpdate in scopes Normal. Update status of encryption propagation
354357 ActionTypeEncryptionKeyStatusUpdate ActionType = "EncryptionKeyStatusUpdate"
355358
359+ // ActionTypeEnforceResignLeadership in scopes Normal. Run the ResignLeadership job on DBServer and checks data compatibility after
360+ ActionTypeEnforceResignLeadership ActionType = "EnforceResignLeadership"
361+
356362 // ActionTypeIdle in scopes Normal. Define idle operation in case if preconditions are not meet
357363 ActionTypeIdle ActionType = "Idle"
358364
@@ -587,6 +593,8 @@ func (a ActionType) DefaultTimeout() time.Duration {
587593 return ActionEncryptionKeyRemoveDefaultTimeout
588594 case ActionTypeEncryptionKeyStatusUpdate :
589595 return ActionEncryptionKeyStatusUpdateDefaultTimeout
596+ case ActionTypeEnforceResignLeadership :
597+ return ActionEnforceResignLeadershipDefaultTimeout
590598 case ActionTypeIdle :
591599 return ActionIdleDefaultTimeout
592600 case ActionTypeJWTAdd :
@@ -761,6 +769,8 @@ func (a ActionType) Priority() ActionPriority {
761769 return ActionPriorityNormal
762770 case ActionTypeEncryptionKeyStatusUpdate :
763771 return ActionPriorityNormal
772+ case ActionTypeEnforceResignLeadership :
773+ return ActionPriorityNormal
764774 case ActionTypeIdle :
765775 return ActionPriorityNormal
766776 case ActionTypeJWTAdd :
@@ -947,6 +957,8 @@ func (a ActionType) Optional() bool {
947957 return false
948958 case ActionTypeEncryptionKeyStatusUpdate :
949959 return false
960+ case ActionTypeEnforceResignLeadership :
961+ return true
950962 case ActionTypeIdle :
951963 return false
952964 case ActionTypeJWTAdd :
0 commit comments