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

concurrent URImap read and writes #66

Merged
merged 5 commits into from
Mar 4, 2021

Conversation

yangcao77
Copy link
Collaborator

@yangcao77 yangcao77 commented Mar 2, 2021

What does this PR do?

This PR resolves the concurrency issue with URIMap. It removes the global URIMap defined in context.go, and save it in each devfileObj's cxt.

What issues does this PR fix or reference?

Fixes devfile/api#359

Is your PR tested? Consider putting some instruction how to test your changes

@mmulholla helped test with API tests, can run 20 consecutive runs without failure

Signed-off-by: Stephanie <yangcao@redhat.com>
Signed-off-by: Stephanie <yangcao@redhat.com>
@yangcao77 yangcao77 force-pushed the 359-concurrentMapWrites branch 3 times, most recently from 0325224 to 5d8d5bd Compare March 2, 2021 20:00
Signed-off-by: Stephanie <yangcao@redhat.com>
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maysunfaisal, yangcao77

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [maysunfaisal,yangcao77]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@yangcao77 yangcao77 merged commit a69d29a into devfile:master Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Concurrency issue on accessing shared varible URIMap
3 participants