Skip to content

Conversation

@sethsamuel
Copy link
Contributor

What does this PR do?

Skips setting the max_execution_time when collecting schemas for MySQL 5.6.

Motivation

max_execution_time is not supported in MySQL 5.6.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • 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

@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.17%. Comparing base (37b01a5) to head (bf5b173).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Dec 10, 2025

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
* Fix with Cursor requires Datadog plugin ≥v2.17.0
🔗 Commit SHA: bf5b173 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

with closing(self._check._mysql_metadata.get_db_connection().cursor(CommenterDictCursor)) as cursor:
query = self._get_tables_query()
max_execution_time = self._config.max_execution_time
if self._check.is_mariadb:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For completeness can we add a version check for mariadb here as well. MAX_STATEMENT_TIME was added in 10.1.1 which is also quite old, but better to guard against potential issues here

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.

3 participants