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

[Backport 7.56.x] [mysql] revert default read_timeout #18098

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

datadog-agent-integrations-bot[bot]
Copy link
Contributor

Backport 4d47709 from #18097.


What does this PR do?

This PR reverts the default 10s read_timeout for MySQL integration as we see connection leaks in rare cases.

Motivation

Due to the default 10s read_timeout, mysql queries can sometimes timeout and result in uncaught exception. The uncaught exceptions that happen in DBM async threads will cause those threads to shutdown. A new thread will be started with a new database connection. In rare cases, the database connection from prior thread is closed on the client side but remains open on the database server side. This has resulted in more new connections being opened with datadog user and caused connection surge on the database.

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

* revert default read_timeout

* add changelog

(cherry picked from commit 4d47709)
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (7.56.x@902a5a7). Learn more about missing BASE report.

Additional details and impacted files
Flag Coverage Δ
mysql 87.98% <100.00%> (?)

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

@iliakur iliakur merged commit 94fd84b into 7.56.x Jul 23, 2024
37 of 38 checks passed
@iliakur iliakur deleted the backport-18097-to-7.56.x branch July 23, 2024 12:23
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.

4 participants