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

Fixed potential deadlocks by opening sessions only on demand #1439

Conversation

dejsenlitro
Copy link
Contributor

@dejsenlitro dejsenlitro commented Oct 11, 2021

Removed potential deadlocks in Multitenancy, Issue credential v2, Present proof v2 and mediation protocols by opening sessions on demand and closing them asap.

Additional info in this issue: #1417

ianco and others added 30 commits October 11, 2021 12:36
Signed-off-by: Ian Costanzo <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Ian Costanzo <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Ian Costanzo <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Ian Costanzo <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Ian Costanzo <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Ian Costanzo <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Ian Costanzo <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Andrew Whitehead <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Ian Costanzo <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Ian Costanzo <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: pavlos-p <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Ian Costanzo <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Shaanjot Gill <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Adam Burdett <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Adam Burdett <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Andraž Cuderman <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Andraž Cuderman <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Andraž Cuderman <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Andraž Cuderman <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
This reverts commit a67df43.

Signed-off-by: Andraž Cuderman <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Shaanjot Gill <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Ian Costanzo <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
Signed-off-by: Ian Costanzo <[email protected]>
Signed-off-by: arin.hlaj <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Oct 11, 2021

Codecov Report

Merging #1439 (87cb2f8) into main (1ec676a) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1439   +/-   ##
=======================================
  Coverage   94.59%   94.60%           
=======================================
  Files         483      483           
  Lines       29664    29707   +43     
=======================================
+ Hits        28061    28104   +43     
  Misses       1603     1603           

@dejsenlitro dejsenlitro force-pushed the feat-IDENT-3372-askar-session-deadlock-v2 branch from 38e267a to f27c232 Compare October 11, 2021 10:47
@dejsenlitro dejsenlitro changed the title Feat ident 3372 askar session deadlock v2 Feat ident 3372 askar session deadlock v2 Oct 11, 2021
…to feat-IDENT-3372-askar-session-deadlock-v2

Signed-off-by: arin.hlaj <[email protected]>
@dejsenlitro dejsenlitro force-pushed the feat-IDENT-3372-askar-session-deadlock-v2 branch from 3e33260 to 23dac1f Compare October 11, 2021 12:48
@dejsenlitro dejsenlitro changed the title Feat ident 3372 askar session deadlock v2 Fixed potential deadlocks by opening sessions only on demand Oct 12, 2021
@dejsenlitro
Copy link
Contributor Author

@andrewwhitehead @swcurran if possible can you please review this?

@swcurran
Copy link
Contributor

@TimoGlastra @ianco @shaangill025 -- can you please take a look at this? Ideally, coordinate to prevent duplicate work -- add a comment here if you are able to take this on.

There are a lot of changed, but using a repeated pattern, so hopefully the effort to review won't be too bad.

@ianco
Copy link
Contributor

ianco commented Oct 15, 2021

I'll take a look today. @dejsenlitro can you catch up with the latest updates to the main branch?

@dejsenlitro
Copy link
Contributor Author

Thanks @ianco! Updated with main branch

@ianco
Copy link
Contributor

ianco commented Oct 15, 2021

Everything looks good, however when I combine with my other PR (#1431) I still get some askar deadlock errors in the integration tests. I'll investigate further before I approve this PR.

@ianco ianco requested a review from shaangill025 October 15, 2021 21:22
@ianco ianco merged commit fec69f1 into openwallet-foundation:main Oct 15, 2021
@ctomc ctomc deleted the feat-IDENT-3372-askar-session-deadlock-v2 branch July 14, 2022 16:03
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.