[Rust-dataplane] SHOW SESSION_STATES extra rows must be ignored like Go
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
对比 pkg/proxy/backend/backend_conn_mgr.go:568-570 和 rust/crates/session-core/src/internal_client.rs:703-705;Go 调用读取第 0 行,而 Rust 解析器要求恰好有一行。首先追踪 Rust 解析器及其针对 SHOW SESSION_STATES 的测试。完成标准是 Rust 使用第一行并忽略多余行,与 Go 一致;列出的 RED 运行是 run.tiproxy-rust-dataplane.session-states-extra-rows.20260902.RED。
由索引模型根据 Issue 内容生成。
描述
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 分钟
- 30 天内合并 PR
- 9
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingcap/tiproxy 的其他 Issue
-
migration:bb7133-tiproxy
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
[Rust-dataplane] Migration backend handshake must preserve CONNECT_WITH_DB when current-db empty未关闭migration:bb7133-tiproxy
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
migration:bb7133-tiproxy
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
migration:bb7133-tiproxy
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
migration:bb7133-tiproxy
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
fix(handlers): explicitly set Content-Type header in static Index handler可能已有人在做 @kage-zero 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
Quick Open: restore dependency-directory exclusions in filesystem fallback可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
eugenioenko/ttt#1206 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
open-policy-agent/opa#9426 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
rorkai/App-Store-Connect-CLI#3192 ·
维护者通常 1 天内回复
-
t:urlDecodeUni does not map U+3002 and U+FF61 to a dot, unlike ModSecurity可能已有人在做 @fzipi 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复