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

[DBMON-3642] Proper handle events_statements_* timer_end overflow #16936

Merged
merged 3 commits into from
Feb 23, 2024

Conversation

lu-zhengda
Copy link
Contributor

What does this PR do?

This PR handles the case when events_statements_* timer_end overflows. timer_end is in picosecond has column type BIGINT, when it overflows and wrapped around, the calculated of statement timestamp based on server UPTIME could become stale.
This PR handles this case by calculate "how many time timer_end overflowed" and makes up the difference.

Motivation

MySQL explain plan events are dropped when timestamp is stale. This change ensures we don't get a stake timestamp.

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.

Copy link

codecov bot commented Feb 22, 2024

Codecov Report

Attention: Patch coverage is 86.36364% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 90.68%. Comparing base (4cffc58) to head (a5f2426).
Report is 1 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
activemq ?
cassandra ?
confluent_platform ?
hive ?
hivemq ?
hudi ?
ignite ?
jboss_wildfly ?
kafka ?
mysql 87.45% <86.36%> (-0.04%) ⬇️
presto ?
solr ?
weblogic ?

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

Copy link

Test Results

   16 files     16 suites   15m 38s ⏱️
  141 tests   141 ✅ 0 💤 0 ❌
1 128 runs  1 119 ✅ 9 💤 0 ❌

Results for commit a5f2426.

@lu-zhengda lu-zhengda merged commit 6012bdf into master Feb 23, 2024
44 of 45 checks passed
@lu-zhengda lu-zhengda deleted the zhengda.lu/mysql-picoseconds-overflow branch February 23, 2024 16:29
@lu-zhengda lu-zhengda mentioned this pull request Feb 26, 2024
3 tasks
FlorentClarret pushed a commit that referenced this pull request Mar 1, 2024
…6936)

* proper handle timer_end overflow

* add changelog

* fix typo
NouemanKHAL pushed a commit that referenced this pull request Mar 4, 2024
…6936)

* proper handle timer_end overflow

* add changelog

* fix typo
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