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

fix: improve request cancellation to keep the s3Client queue low #548

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

fenos
Copy link
Contributor

@fenos fenos commented Sep 17, 2024

What kind of change does this PR introduce?

Perf improvement

What is the new behavior?

When we detect a client disconnect, we cancel the underline AWS S3 getObject request via abort signals

@fenos fenos force-pushed the perf/improve-handling-of-request-cancellation branch 3 times, most recently from 032f5c5 to b4c5062 Compare September 17, 2024 13:04
@coveralls
Copy link

coveralls commented Sep 17, 2024

Pull Request Test Coverage Report for Build 10917763267

Details

  • 178 of 184 (96.74%) changed or added relevant lines in 21 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 78.782%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/http/plugins/signals.ts 41 43 95.35%
src/storage/backend/adapter.ts 0 2 0.0%
src/storage/renderer/renderer.ts 3 5 60.0%
Totals Coverage Status
Change from base Build 10881586243: 0.1%
Covered Lines: 13622
Relevant Lines: 17143

💛 - Coveralls

@fenos fenos force-pushed the perf/improve-handling-of-request-cancellation branch from b4c5062 to a56ac29 Compare September 17, 2024 14:55
@fenos fenos force-pushed the perf/improve-handling-of-request-cancellation branch from a56ac29 to 5f9e0f8 Compare September 18, 2024 07:43
@fenos fenos merged commit e47e612 into master Sep 18, 2024
1 check passed
@fenos fenos deleted the perf/improve-handling-of-request-cancellation branch September 18, 2024 09:01
Copy link

🎉 This PR is included in version 1.11.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants