Skip to content

Make sure CRT resources are closed in tests #4753

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

Merged

Conversation

zoewangg
Copy link
Contributor

@zoewangg zoewangg commented Dec 7, 2023

Motivation and Context

Make sure resources are closed in tests

@zoewangg zoewangg requested a review from a team as a code owner December 7, 2023 01:02
@zoewangg zoewangg force-pushed the zoewang/crt-troubleshootleak branch from 7c0dbac to 5d41dcf Compare December 7, 2023 21:31
@zoewangg zoewangg force-pushed the zoewang/crt-troubleshootleak branch from 5d41dcf to 5c5ce0d Compare December 7, 2023 23:23
Copy link

sonarqubecloud bot commented Dec 8, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 4 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 18 Code Smells

76.7% 76.7% Coverage
3.3% 3.3% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@zoewangg zoewangg merged commit 39c8972 into feature/master/synccrtclient Dec 8, 2023
@zoewangg zoewangg deleted the zoewang/crt-troubleshootleak branch December 8, 2023 01:11
zoewangg added a commit that referenced this pull request Dec 15, 2023
* Synchronous CRT Http Client SPI with tests (#4405)

* implemented synchronous crt java http client with tests.

---------

Co-authored-by: Waqar Ahmed Khan <[email protected]>
Co-authored-by: Dongie Agnir <[email protected]>

* Various refactoring on CRT Sync HTTP Client (#4749)

* Make sure CRT resources are closed (#4753)

* Load HTTP implementations from classpath based on priority order (#4774)

* Various performance optimization for CRT sync HTTP client (#4776)

* Various performance optimization for CRT sync HTTP client

* Return as soon as the stream starts if there is a payload in sync http client

* Clean up tests and add changelog entry

* Bump minor version to 2.22.0

* UrlConnectionSdkHttpService should have higher priority than AwsCrtSdkHttpService

* Remove CrtResource.waitForNoResources() from integration tests because it increases test time and makes tests flaky especially when tests are running in parallel. We still verify it in wiremock tests and stability tests

---------

Co-authored-by: Jonathan M. Henson <[email protected]>
Co-authored-by: Waqar Ahmed Khan <[email protected]>
Co-authored-by: Dongie Agnir <[email protected]>
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.

2 participants