Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

fix: Avoid TooManySessions error when there is an exact match, not only prefix matches #506

Merged
merged 7 commits into from
Dec 21, 2021

Conversation

mindgitrwx
Copy link
Contributor

This pull request temporary solve the session_name matching problem (Too many sessions matched)

lablup/backend.ai#297

@codecov
Copy link

codecov bot commented Dec 19, 2021

Codecov Report

Merging #506 (3213a75) into main (06b69a0) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #506      +/-   ##
==========================================
- Coverage   48.84%   48.83%   -0.02%     
==========================================
  Files          54       54              
  Lines        8947     8951       +4     
==========================================
+ Hits         4370     4371       +1     
- Misses       4577     4580       +3     
Impacted Files Coverage Δ
src/ai/backend/manager/models/kernel.py 44.13% <0.00%> (-0.33%) ⬇️
src/ai/backend/manager/models/utils.py 76.52% <0.00%> (+0.86%) ⬆️

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 06b69a0...3213a75. Read the comment docs.

@mindgitrwx mindgitrwx requested a review from achimnol December 21, 2021 01:28
@mindgitrwx
Copy link
Contributor Author

lablup/backend.ai#297
I tested this issue with this pull request, And this type of error didn't happen.

@achimnol achimnol changed the title fix: add max_matches limitation on reenter_txn fix: Avoid TooManySessions error when there is an exact match, not only prefix matches Dec 21, 2021
@achimnol achimnol merged commit 3d5fda0 into main Dec 21, 2021
@achimnol achimnol deleted the fix/session_name-matching branch December 21, 2021 02:10
@achimnol achimnol added the bug label Dec 21, 2021
@achimnol achimnol added this to the 21.03 milestone Dec 21, 2021
achimnol pushed a commit that referenced this pull request Dec 21, 2021
…ly prefix matches (#506)

* Add one more query with `cond_equal_name` in addition to `cond_prefix_name`.
  The common case will still be the session ID prefix matching before matching names,
  so we expect the performance impact is minimal.

Backported-From: main (22.03)
Backported-To: 21.09
achimnol pushed a commit that referenced this pull request Dec 21, 2021
…ly prefix matches (#506)

* Add one more query with `cond_equal_name` in addition to `cond_prefix_name`.
  The common case will still be the session ID prefix matching before matching names,
  so we expect the performance impact is minimal.

Backported-From: main (22.03)
Backported-To: 21.03
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants