|
1 | 1 | // |
2 | | -// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany |
| 2 | +// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany |
3 | 3 | // |
4 | 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | // you may not use this file except in compliance with the License. |
@@ -101,6 +101,9 @@ const ( |
101 | 101 | // ActionEnforceResignLeadershipDefaultTimeout define default timeout for action ActionEnforceResignLeadership |
102 | 102 | ActionEnforceResignLeadershipDefaultTimeout time.Duration = 2700 * time.Second // 45m0s |
103 | 103 |
|
| 104 | + // ActionEnsureSecuredResignLeadershipDefaultTimeout define default timeout for action ActionEnsureSecuredResignLeadership |
| 105 | + ActionEnsureSecuredResignLeadershipDefaultTimeout time.Duration = 600 * time.Second // 10m0s |
| 106 | + |
104 | 107 | // ActionIdleDefaultTimeout define default timeout for action ActionIdle |
105 | 108 | ActionIdleDefaultTimeout time.Duration = ActionsDefaultTimeout |
106 | 109 |
|
@@ -362,6 +365,9 @@ const ( |
362 | 365 | // ActionTypeEnforceResignLeadership in scopes Normal. Run the ResignLeadership job on DBServer and checks data compatibility after |
363 | 366 | ActionTypeEnforceResignLeadership ActionType = "EnforceResignLeadership" |
364 | 367 |
|
| 368 | + // ActionTypeEnsureSecuredResignLeadership in scopes Normal. Ensures that data is still replicated on other servers |
| 369 | + ActionTypeEnsureSecuredResignLeadership ActionType = "EnsureSecuredResignLeadership" |
| 370 | + |
365 | 371 | // ActionTypeIdle in scopes Normal. Define idle operation in case if preconditions are not meet |
366 | 372 | ActionTypeIdle ActionType = "Idle" |
367 | 373 |
|
@@ -601,6 +607,8 @@ func (a ActionType) DefaultTimeout() time.Duration { |
601 | 607 | return ActionEncryptionKeyStatusUpdateDefaultTimeout |
602 | 608 | case ActionTypeEnforceResignLeadership: |
603 | 609 | return ActionEnforceResignLeadershipDefaultTimeout |
| 610 | + case ActionTypeEnsureSecuredResignLeadership: |
| 611 | + return ActionEnsureSecuredResignLeadershipDefaultTimeout |
604 | 612 | case ActionTypeIdle: |
605 | 613 | return ActionIdleDefaultTimeout |
606 | 614 | case ActionTypeJWTAdd: |
@@ -779,6 +787,8 @@ func (a ActionType) Priority() ActionPriority { |
779 | 787 | return ActionPriorityNormal |
780 | 788 | case ActionTypeEnforceResignLeadership: |
781 | 789 | return ActionPriorityNormal |
| 790 | + case ActionTypeEnsureSecuredResignLeadership: |
| 791 | + return ActionPriorityNormal |
782 | 792 | case ActionTypeIdle: |
783 | 793 | return ActionPriorityNormal |
784 | 794 | case ActionTypeJWTAdd: |
@@ -969,6 +979,8 @@ func (a ActionType) Optional() bool { |
969 | 979 | return false |
970 | 980 | case ActionTypeEnforceResignLeadership: |
971 | 981 | return true |
| 982 | + case ActionTypeEnsureSecuredResignLeadership: |
| 983 | + return false |
972 | 984 | case ActionTypeIdle: |
973 | 985 | return false |
974 | 986 | case ActionTypeJWTAdd: |
|
0 commit comments