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

Provide installed BackupStore when installing BackupService #10251

Merged
merged 11 commits into from
Sep 2, 2022

Conversation

deepthidevaki
Copy link
Contributor

Description

  • If a BackupStore is available, BackupManager is installed with the given BackupStore. If no backup store is available, or if it is in follower role, then a NoopBackupManager is installed.
  • Re-install BackupManager only when transitioning between Leader and Follower roles. When transition between Candidate and Follower, we don't have to re-install services. This is an optimization to remove unnecessary re-installations. Other services like StreamProcessor follows the same pattern.
  • Refactored the tests for the transition steps to reuse a common argument provider.

Note:- This PR assumes a backup store is installed in a different step, which is not done yet. So currently it always install a NoopBackupManager.

Related issues

closes #10207

Definition of Done

Not all items need to be done depending on the issue and the pull request.

Code changes:

  • The changes are backwards compatibility with previous versions
  • If it fixes a bug then PRs are created to backport the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. backport stable/1.3) to the PR, in case that fails you need to create backports manually.

Testing:

  • There are unit/integration tests that verify all acceptance criterias of the issue
  • New tests are written to ensure backwards compatibility with further versions
  • The behavior is tested manually
  • The change has been verified by a QA run
  • The impact of the changes is verified by a benchmark

Documentation:

  • The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.)
  • New content is added to the release announcement
  • If the PR changes how BPMN processes are validated (e.g. support new BPMN element) then the Camunda modeling team should be informed to adjust the BPMN linting.

Please refer to our review guidelines.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2022

Test Results

   861 files  +    1     861 suites  +1   1h 40m 54s ⏱️ + 1m 13s
6 595 tests  - 191  6 585 ✔️  - 191  10 💤 ±0  0 ±0 
6 779 runs   - 191  6 769 ✔️  - 191  10 💤 ±0  0 ±0 

Results for commit fa7f4fc. ± Comparison against base commit 7a168fd.

♻️ This comment has been updated with latest results.

Copy link
Member

@lenaschoenburg lenaschoenburg left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@deepthidevaki
Copy link
Contributor Author

bors merge

zeebe-bors-camunda bot added a commit that referenced this pull request Sep 2, 2022
10251: Provide installed BackupStore when installing BackupService r=deepthidevaki a=deepthidevaki

## Description

- If a BackupStore is available, BackupManager is installed with the given BackupStore. If no backup store is available, or if it is in follower role, then a NoopBackupManager is installed.
- Re-install BackupManager only when transitioning between Leader and Follower roles. When transition between Candidate and Follower, we don't have to re-install services. This is an optimization to remove unnecessary re-installations. Other services like StreamProcessor follows the same pattern.
- Refactored the tests for the transition steps to reuse a common argument provider.

Note:- This PR assumes a backup store is installed in a different step, which is not done yet. So currently it always install a NoopBackupManager.

## Related issues

closes #10207 



Co-authored-by: Deepthi Devaki Akkoorath <deepthidevaki@gmail.com>
@zeebe-bors-camunda
Copy link
Contributor

Build failed:

@deepthidevaki
Copy link
Contributor Author

bors retry

@zeebe-bors-camunda
Copy link
Contributor

Build succeeded:

@zeebe-bors-camunda zeebe-bors-camunda bot merged commit f185b30 into main Sep 2, 2022
@zeebe-bors-camunda zeebe-bors-camunda bot deleted the dd-1027-install-backup-manager branch September 2, 2022 08:39
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.

Install backup manager with configured backup store
2 participants