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

fix(datastore): Release semaphore if an error occurs while starting or stopping the Orchestrator #2398

Merged
merged 2 commits into from
Apr 19, 2023

Conversation

mattcreaser
Copy link
Member

  • PR title and description conform to Pull Request guidelines.

Issue #, if available: #2263

Description of changes: Add a doOnError operator to release the semaphore if Orchestrator encounters an error during start or stop. This restores the prior behaviour of doFinally that was removed here: https://github.com/aws-amplify/amplify-android/pull/2209/files#diff-eaf24d0ba1fee6a80c5684eccb0f02cdeea76297bf4b41047b2ea9728deb8127L186

How did you test these changes? Unit test

Documentation update required?

  • No
  • Yes (Please include a PR link for the documentation update)

General Checklist

  • Added Unit Tests
  • Added Integration Tests
  • Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mattcreaser mattcreaser requested a review from a team as a code owner April 18, 2023 17:17
dengdan154
dengdan154 previously approved these changes Apr 18, 2023
gpanshu
gpanshu previously approved these changes Apr 18, 2023
tjleing
tjleing previously approved these changes Apr 18, 2023
@mattcreaser mattcreaser added this pull request to the merge queue Apr 19, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Apr 19, 2023
@mattcreaser mattcreaser added this pull request to the merge queue Apr 19, 2023
@mattcreaser mattcreaser removed this pull request from the merge queue due to the queue being cleared Apr 19, 2023
@mattcreaser mattcreaser merged commit d379296 into main Apr 19, 2023
@mattcreaser mattcreaser deleted the mattcreaser/datastore-start branch April 19, 2023 18:32
@mattcreaser mattcreaser restored the mattcreaser/datastore-start branch April 19, 2023 18:32
@mattcreaser mattcreaser deleted the mattcreaser/datastore-start branch April 19, 2023 18:32
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.

5 participants