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

Twick test to have small read_timeout #18071

Closed
wants to merge 1 commit into from

Conversation

kozlovb
Copy link
Contributor

@kozlovb kozlovb commented Jul 19, 2024

What does this PR do?

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

@@ -159,6 +159,8 @@ def _run_blocking(conn):
)
def test_activity_reported_hostname(aggregator, dbm_instance, dd_run_check, reported_hostname, expected_hostname):
dbm_instance['reported_hostname'] = reported_hostname
dbm_instance['read_timeout'] = 0.001
Copy link
Contributor Author

Choose a reason for hiding this comment

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

run with
ddev test mysql:py3.11-5.7 -- -k test_activity_reported_hostname -vvv tests/test_query_activity.py

pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query (timed out)')

ERROR datadog_checks.base.checks.base.mysql:mysql.py:327 error!
Traceback (most recent call last):
File "/root/dd/integrations-core/mysql/datadog_checks/mysql/mysql.py", line 295, in check
self.version = get_version(db)
^^^^^^^^^^^^^^^
File "/root/dd/integrations-core/mysql/datadog_checks/mysql/version_utils.py", line 16, in get_version
cursor.execute('SELECT VERSION()')
File "/root/.local/share/hatch/env/virtual/datadog-mysql/bAxv122H/py3.11-5.7/lib/python3.11/site-packages/pymysql/cursors.py", line 153, in execute
result = self._query(query)
^^^^^^^^^^^^^^^^^^
File "/root/.local/share/hatch/env/virtual/datadog-mysql/bAxv122H/py3.11-5.7/lib/python3.11/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "/root/.local/share/hatch/env/virtual/datadog-mysql/bAxv122H/py3.11-5.7/lib/python3.11/site-packages/pymysql/connections.py", line 562, in query
self._execute_command(COMMAND.COM_QUERY, sql)
File "/root/.local/share/hatch/env/virtual/datadog-mysql/bAxv122H/py3.11-5.7/lib/python3.11/site-packages/pymysql/connections.py", line 843, in _execute_command
raise err.InterfaceError(0, "")

Copy link

codecov bot commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.63%. Comparing base (166d89f) to head (1470bbd).
Report is 886 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
activemq ?
cassandra ?
hive ?
hivemq ?
hudi ?
ignite ?
jboss_wildfly ?
kafka ?
mysql 83.30% <100.00%> (?)
presto ?
solr ?

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

@dd-devflow dd-devflow bot closed this Jan 18, 2025
@dd-devflow dd-devflow bot deleted the bk-test-read-connection-timeout branch January 18, 2025 00:00
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.

1 participant