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

feat: Added locking to memory storage #471

Merged
merged 1 commit into from
Sep 6, 2020

Conversation

mitar
Copy link
Contributor

@mitar mitar commented Sep 5, 2020

Related issue

None.

Proposed changes

We use memory storage for unit tests. We have observed that occasionally tests fail because of concurrent access to maps making tests flaky. This PR makes memory storage more robust and support concurrent access to it.

Checklist

  • I have read the contributing guidelines
  • I have read the security policy
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security vulnerability, I
    confirm that I got green light (please contact
    [email protected]) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation within the code base (if appropriate)

Copy link
Member

@zepatrik zepatrik left a comment

Choose a reason for hiding this comment

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

LGTM

@aeneasr aeneasr merged commit 4687147 into ory:master Sep 6, 2020
@mitar mitar deleted the memory-storage-locking branch September 7, 2020 01:35
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.

3 participants