Skip to content

[MME][ZMQ] Protect against multiple threads using the same context#5307

Merged
ulaskozat merged 1 commit intomagma:masterfrom
talkhasib:zmq
Mar 4, 2021
Merged

[MME][ZMQ] Protect against multiple threads using the same context#5307
ulaskozat merged 1 commit intomagma:masterfrom
talkhasib:zmq

Conversation

@talkhasib
Copy link
Copy Markdown
Contributor

@talkhasib talkhasib commented Mar 4, 2021

Signed-off-by: Tariq Al-Khasib [email protected]

Summary

Tasks interfacing to outside of MME create new threads when handling GRPC calls. Thus, zmq context is getting shared among multiple threads. This could create many race issues. The services in question are (SCTP, S6A, and SPGW) + Timers

This PR protects the zmq context with a mutex for exclusive access.

Test Plan

fab integ_test

@magmabot magmabot added the component: agw Access gateway-related issue label Mar 4, 2021
Copy link
Copy Markdown
Contributor

@ulaskozat ulaskozat left a comment

Choose a reason for hiding this comment

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

LGTM

@ulaskozat
Copy link
Copy Markdown
Contributor

MAGMA-OAI-TESTS

@ulaskozat ulaskozat added apply-v1.3 Needs to be applied to v1.3 release branch as well apply-v1.4 Needs to be applied to v1.4 release branch as well labels Mar 4, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 4, 2021

Codecov Report

Merging #5307 (283a871) into master (a1ad0a0) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5307   +/-   ##
=======================================
  Coverage   63.60%   63.60%           
=======================================
  Files         301      301           
  Lines       20340    20340           
=======================================
  Hits        12937    12937           
  Misses       5494     5494           
  Partials     1909     1909           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1ad0a0...283a871. Read the comment docs.

@ulaskozat ulaskozat merged commit d44bee9 into magma:master Mar 4, 2021
@themarwhal themarwhal added the backported-v1.4 Has been backported to v1.4 release branch label Mar 4, 2021
themarwhal pushed a commit that referenced this pull request Mar 4, 2021
@themarwhal themarwhal added the backported-v1.3 Has been backported to v1.3 release branch label Mar 4, 2021
themarwhal pushed a commit that referenced this pull request Mar 4, 2021
chandra-77 pushed a commit to chandra-77/magma that referenced this pull request Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apply-v1.3 Needs to be applied to v1.3 release branch as well apply-v1.4 Needs to be applied to v1.4 release branch as well backported-v1.3 Has been backported to v1.3 release branch backported-v1.4 Has been backported to v1.4 release branch component: agw Access gateway-related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants