`Slow_query_ratio` keeps failing after a temporary `long_query_time = 0`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- mariadb, php
調査の方向性
lib/Database/RuleSet/Mysql.php:167 から始めます。この場所では、ライフタイムの Slow_queries / Questions 比率が計算されています。Uptime_since_flush_status を含む利用可能な MariaDB のステータス値を追跡し、一時的な long_query_time = 0 でその動作を再現します。完了条件は、診断ウィンドウの後にスロークエリの比率が回復し、MariaDB の再起動を必要としないことです。また、リセットシナリオをカバーする回帰テストを含めます。
索引モデルが issue の本文から書いたものです。
説明
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Reported in #1294. Confirmed in the code on master, not reproduced on a live instance.
Steps to reproduce
- On MariaDB, set
long_query_time = 0at runtime to capture queries for a diagnosis. - Set it back to the previous value.
- Open Administration settings → Server info → Database.
Expected behaviour
The Slow_query_ratio check recovers once long_query_time is back to normal.
Actual behaviour
The check keeps failing until MariaDB restarts. The rule divides lifetime counters (Slow_queries / Questions, lib/Database/RuleSet/Mysql.php:167), so every query from the diagnostic window stays counted as slow. The uptime gate doesn't help, because uptime keeps growing. A rate, or values since Uptime_since_flush_status, would avoid this.
Assisted by ClaudeCode:claude-opus-5-5
- 主要言語
- JavaScript
- スター
- 134
- フォーク
- 71
- 平均マージ
- 18時間 56分
- マージ済み PR(30日)
- 33
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/serverinfo のほかの issue
-
Server Info’s slowest-jobs refresh gets expensive as job history grows対応中かも @melroy89 が 6 日前に担当しました。 オープン1. to develop enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
nextcloud/serverinfo#1293 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
1. to develop bug good first issue
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
nextcloud/serverinfo#1266 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
Database checks: ∞% reported as Failing when counter is zero; no way to acknowledge/mute a checkオープン0. Needs triage bug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
nextcloud/serverinfo#1231 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
1. to develop bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
nextcloud/serverinfo#1224 · コメント 7 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
0. Needs triage bug needs info
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
nextcloud/serverinfo#1223 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
nextcloud/serverinfo の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MetaMask/eth-phishing-detect#317371 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
erkamyaman/safe-anything#262 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
erkamyaman/rust-anything#963 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
brystmar/breadsheet-ui#78 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100