Skip to content

Conversation

@edengorevoy
Copy link
Contributor

@edengorevoy edengorevoy commented Dec 31, 2025

What does this PR do?

In SDBM-2260 we have a user who upgraded to Agent 7.73 and started seeing issues with performance related to the Query Errors query starting with SUM(SUM_ERROR_RAISED), causing them to downgrade the agent. The query runtime ranges from 18s - 50s on their host. The query was introduced in this PR.

There are no performance issues with this query in our integration environments, and on most of the hosts in that user's environment, so part of the investigation will be understanding why that particular host is seeing high runtimes. The current theory is that there is some contention on performance_schema that might be caused by RDS Performance Insights making queries to the same table. In the meantime this PR makes the query configurable, but default true, for users that are having issues with it.

Motivation

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

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@edengorevoy edengorevoy changed the title Make query error tracking optional, default true SDBM-2258 Make query error tracking optional, default true Dec 31, 2025
@edengorevoy edengorevoy changed the title SDBM-2258 Make query error tracking optional, default true SDBM-2260 Make query error tracking optional, default true Dec 31, 2025
@edengorevoy edengorevoy marked this pull request as ready for review December 31, 2025 17:27
@edengorevoy edengorevoy requested review from a team as code owners December 31, 2025 17:27
@codecov
Copy link

codecov bot commented Dec 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.16%. Comparing base (0d1bcd1) to head (fa30427).

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.

@edengorevoy edengorevoy force-pushed the eden.gorevoy/add-query-error-stats-option branch from f1f05de to 5091666 Compare December 31, 2025 17:29
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@edengorevoy edengorevoy force-pushed the eden.gorevoy/add-query-error-stats-option branch from 5091666 to fa30427 Compare December 31, 2025 18: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.

2 participants