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

pool/SNOW-902608 #2/4 new pool version v2 (#794) #810

Closed
wants to merge 4 commits into from

Conversation

sfc-gh-mhofman
Copy link
Collaborator

Description

Connection Pool v2

  • introduction of connection manager handling multiple pool of sessions
  • ability to switch Connection Manager between v1 and v2
  • controlling pool settings for each pool independently
  • default pool version: v1

Checklist

  • Code compiles correctly
  • Code is formatted according to Coding Conventions
  • Created tests which fail without the change (if possible)
  • All tests passing (dotnet test)
  • Extended the README / documentation, if necessary
  • Provide JIRA issue id (if possible) or GitHub issue id in PR name

Description

Please explain the changes you made here.

Checklist

  • Code compiles correctly
  • Code is formatted according to Coding Conventions
  • Created tests which fail without the change (if possible)
  • All tests passing (dotnet test)
  • Extended the README / documentation, if necessary
  • Provide JIRA issue id (if possible) or GitHub issue id in PR name

### Description
Connection Pool v2
- introduction of connection manager handling multiple pool of sessions
- ability to switch Connection Manager between v1 and v2
- controlling pool settings for each pool independently
- default pool version: v1

### Checklist
- [x] Code compiles correctly
- [x] Code is formatted according to [Coding
Conventions](../CodingConventions.md)
- [x] Created tests which fail without the change (if possible)
- [x] All tests passing (`dotnet test`)
- [x] Extended the README / documentation, if necessary
- [x] Provide JIRA issue id (if possible) or GitHub issue id in PR name
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

Attention: 31 lines in your changes are missing coverage. Please review.

Comparison is base (22d32dd) 83.56% compared to head (85204fc) 81.94%.
Report is 19 commits behind head on master.

Files Patch % Lines
Snowflake.Data/Core/Session/SessionPool.cs 94.70% 7 Missing and 3 partials ⚠️
...owflake.Data/Core/Session/ConnectionPoolManager.cs 93.87% 4 Missing and 2 partials ⚠️
Snowflake.Data/Client/SnowflakeDbConnectionPool.cs 92.30% 2 Missing and 2 partials ⚠️
Snowflake.Data/Core/Session/WaitingQueue.cs 92.98% 3 Missing and 1 partial ⚠️
Snowflake.Data/Core/Session/NonWaitingQueue.cs 78.57% 3 Missing ⚠️
...wflake.Data/Core/Session/SessionOrCreationToken.cs 83.33% 0 Missing and 2 partials ⚠️
...flake.Data/Core/Session/SessionPoolEventHandler.cs 80.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #810      +/-   ##
==========================================
- Coverage   83.56%   81.94%   -1.62%     
==========================================
  Files          89      100      +11     
  Lines        9155     9589     +434     
  Branches      837      877      +40     
==========================================
+ Hits         7650     7858     +208     
- Misses       1278     1486     +208     
- Partials      227      245      +18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

### Description
Split integration tests for different connection pools.

### Checklist
- [x] Code compiles correctly
- [x] Code is formatted according to [Coding
Conventions](../CodingConventions.md)
- [x] Created tests which fail without the change (if possible)
- [x] All tests passing (`dotnet test`)
- [x] Extended the README / documentation, if necessary
- [x] Provide JIRA issue id (if possible) or GitHub issue id in PR name
### Description
Connection Pool v2:
- introduction of a counter of busy sessions created by Pool Manager
- pool size counts both: Idle and Busy sessions

### Checklist
- [x] Code compiles correctly
- [x] Code is formatted according to [Coding
Conventions](../CodingConventions.md)
- [x] Created tests which fail without the change (if possible)
- [x] All tests passing (`dotnet test`)
- [x] Extended the README / documentation, if necessary
- [x] Provide JIRA issue id (if possible) or GitHub issue id in PR name
### Description
SNOW-937190 Wait for idle sessions available if session count exceeds
max count

### Checklist
- [x] Code compiles correctly
- [x] Code is formatted according to [Coding
Conventions](../CodingConventions.md)
- [x] Created tests which fail without the change (if possible)
- [x] All tests passing (`dotnet test`)
- [x] Extended the README / documentation, if necessary
- [x] Provide JIRA issue id (if possible) or GitHub issue id in PR name
@sfc-gh-knozderko
Copy link
Collaborator

it's a duplicate

@github-actions github-actions bot locked and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants