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

[mongo] Apply configured timeout to timeoutMS connection option #18843

Merged
merged 3 commits into from
Oct 16, 2024

Conversation

lu-zhengda
Copy link
Contributor

What does this PR do?

This PR applies the timeout config option (defaults to 30s) to timeoutMS connection option. With timeoutMS, a client-side operation timeout is properly specified. Prior to the change, long running integration command will get a network timeout due to socketTimeoutMS, however the operation will still be running on the server side. By setting timeoutMS, it ensures the operation is properly ended when exceeds defined timeout.

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Changelog entries must be created for modifications to shipped code
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.87%. Comparing base (8d5b9cd) to head (597a545).
Report is 3 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
activemq ?
ignite ?
mongo 93.27% <ø> (-0.24%) ⬇️
presto ?

Flags with carried forward coverage won't be shown. Click here to find out more.

@lu-zhengda lu-zhengda merged commit c16dcc6 into master Oct 16, 2024
38 checks passed
@lu-zhengda lu-zhengda deleted the zhengda.lu/mongo-timeout branch October 16, 2024 11:04
datadog-agent-integrations-bot bot pushed a commit that referenced this pull request Oct 16, 2024
HadhemiDD pushed a commit that referenced this pull request Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants