Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Rust-dataplane] SHOW SESSION_STATES extra rows must be ignored like Go

オープン 初心者向け
#1,367 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go, rust
領域
backend

調査の方向性

pkg/proxy/backend/backend_conn_mgr.go:568-570 と rust/crates/session-core/src/internal_client.rs:703-705 を比較してください。Go の呼び出しは行 0 を読み取りますが、Rust のパーサーは行がちょうど 1 つであることを要求します。まず、Rust のパーサーと SHOW SESSION_STATES のテストをたどってください。完了条件は、Go と同様に Rust が最初の行を使い、余分な行を無視することです。記載された RED 実行は run.tiproxy-rust-dataplane.session-states-extra-rows.20260902.RED です。

索引モデルが issue の本文から書いたものです。

説明

migration:bb7133-tiproxy

Migrated from bb7133/tiproxy#203. Original author: wjhuang2016; created: 2026-09-02T12:43:46Z; source body SHA-256: 566c667dba3c0efaf56ea2d18a5adc1c0bf6c03fbbd0378b23d3b993d6b6499d.

Rust dataplane rewrite parity/functional RED
  • Snapshot commit: 60efdf5e6e8226423df85033534ad748ccb129db
  • Run: run.tiproxy-rust-dataplane.session-states-extra-rows.20260902.RED
Problem

Go GetStringByName(0, ...) reads only row 0. Rust InternalResultParser requires exactly one row and fails with UnexpectedRowCount on extra rows.

Claim

when SHOW SESSION_STATES returns more than one row, Rust must use the first row and ignore extras, matching Go.

Source anchors
  • pkg/proxy/backend/backend_conn_mgr.go:568-570 querySessionStates GetStringByName(0,...)
  • rust/crates/session-core/src/internal_client.rs:703-705 exact one row requirement
Boundary
  • Before: Rust rejects >1 row as UnexpectedRowCount
  • After: Go reads row 0 and ignores extras
Local evidence
  • run.tiproxy-rust-dataplane.session-states-extra-rows.20260902.RED
主要言語
Go
スター
73
フォーク
40
平均マージ
4時間 14分
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pingcap/tiproxy のほかの issue

pingcap/tiproxy の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。