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 860872 connection pool update from master #922

Conversation

sfc-gh-knozderko
Copy link
Collaborator

Description

Update connection pool branch with master changes

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

sfc-gh-kdama and others added 30 commits November 14, 2023 11:12
@noreview - This is an automated process. No review is required

### Description
Please explain the changes you made here.

### 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

Co-authored-by: Jenkins User <snowflake-provisioner>
### Description
Added description how to enable Arrow

### 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
fix for sdk issue 755: Intermittent exception with query context cache

### 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`)
- [ ] Extended the README / documentation, if necessary
- [x] Provide JIRA issue id (if possible) or GitHub issue id in PR name
### Description
Validate account domain to prevent SSRF.

### 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
…827)

Bumped up DotNet connector PATCH version from 2.1.3 to 2.1.4

### Description
Bumped up DotNet connector PATCH version from 2.1.3 to 2.1.4

### 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

Co-authored-by: Jenkins User <snowflake-provisioner>
…in multi-statement queries (#819)

re: SNOW-974746 / #817 
document that we currently do not support bind variables in
multi-statement queries, we're getting issues related to this

document-only change, based on
https://docs.snowflake.com/en/developer-guide/sql-api/submitting-multiple-statements#specifying-multiple-sql-statements-in-the-request
which sems to be valid for all the drivers
…d lock (#830)

### Description
Avoid closing expired sessions synchronously with obtained lock

### 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-961434 Fix usage of insecure mode in connection parameters

### 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
#835)

… obtained lock (#830)"

This reverts commit 645659a.

### Description
Temporary reverted to release hotfix from master.

### 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
…837)

### Description
PATCH: Bumped up DotNet connector PATCH version from 2.1.4 to 2.1.5

### 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

Co-authored-by: Jenkins User <snowflake-provisioner>
#841)

…d lock (#830)

### Description
Avoid closing expired sessions synchronously with obtained lock

### 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
…851)

@noreview - This is an automated process. No review is required

### Description
Bumped up DotNet connector MINOR version from 2.1.5 to 2.2.0

### 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

Co-authored-by: Jenkins User <snowflake-provisioner>
### Description
Add multiple SAML Integration

### 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
Add tests for increased LOB size

### 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
Modify easy logging based on list of security improvements

### 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
Easy Logging more tests and permission check fix

### 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
Fix Okta retry for SSO/SAML endpoints

### 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
Add check if command text is set before executing

### 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
…perations (#825)

### Description
QueryID is super helpful when solving issues but it was not reachable
when PUT/GET operation got failed at the command/exception level.
It was not available for successful scenario for PUT/GET commands as
well.
This change actually introduces a new type of exception prior to the one
used previously - FileNotFoundException/DirectoryNotFoundException and
this previous exception is now an inner exception of
SnowflakeDbException which we had to use to provide QueryId.
In rare cases (for instance when a connection was not opened) request to
PUT/GET file on stage might still end up with a base Exception since
QueryId won't be created in such a case.

### 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
Timeout delta increased to verify Login Request Timeout falls into
expected range.

### 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
Easy Logging: get driver directory from executable path and use Mono.Unix

### 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 sfc-gh-knozderko force-pushed the pool/SNOW-860872-connection-pool-update-from-master branch from 5f1bc95 to 79dd04a Compare April 22, 2024 13:19
@sfc-gh-knozderko sfc-gh-knozderko force-pushed the pool/SNOW-860872-connection-pool-update-from-master branch from fc24aa2 to d11aaf5 Compare April 22, 2024 14:53
Copy link

codecov bot commented Apr 23, 2024

Codecov Report

Attention: Patch coverage is 77.18011% with 280 lines in your changes are missing coverage. Please review.

Project coverage is 75.26%. Comparing base (7db9d54) to head (a7fa8d4).

❗ Current head a7fa8d4 differs from pull request most recent head 0ba934a. Consider uploading reports for the commit 0ba934a to get more accurate results

Files Patch % Lines
Snowflake.Data/Core/SFStatement.cs 56.59% 90 Missing and 12 partials ⚠️
...Core/Authenticator/ExternalBrowserAuthenticator.cs 0.00% 47 Missing ⚠️
...lake.Data/Core/FileTransfer/SFFileTransferAgent.cs 60.46% 15 Missing and 2 partials ⚠️
Snowflake.Data/Logger/EasyLoggerManager.cs 0.00% 16 Missing ⚠️
Snowflake.Data/Core/ArrowResultSet.cs 78.84% 10 Missing and 1 partial ⚠️
...flake.Data/Core/Authenticator/OktaAuthenticator.cs 92.36% 6 Missing and 4 partials ⚠️
Snowflake.Data/Core/Session/EasyLoggingStarter.cs 81.81% 7 Missing and 3 partials ⚠️
Snowflake.Data/Core/ArrowResultChunk.cs 92.03% 7 Missing and 2 partials ⚠️
Snowflake.Data/Core/Session/SFSessionProperty.cs 90.24% 6 Missing and 2 partials ⚠️
Snowflake.Data/Core/HttpUtil.cs 46.15% 4 Missing and 3 partials ⚠️
... and 14 more
Additional details and impacted files
@@                         Coverage Diff                          @@
##           pool/SNOW-860872-connection-pool     #922      +/-   ##
====================================================================
- Coverage                             82.49%   75.26%   -7.24%     
====================================================================
  Files                                   104      104              
  Lines                                  9916    10469     +553     
  Branches                                917     1002      +85     
====================================================================
- Hits                                   8180     7879     -301     
- Misses                                 1488     2289     +801     
- Partials                                248      301      +53     

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

@sfc-gh-knozderko sfc-gh-knozderko force-pushed the pool/SNOW-860872-connection-pool-update-from-master branch from a7fa8d4 to d8b3be2 Compare April 23, 2024 15:05
@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 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.