[Rust-dataplane] Migration must not force CONNECT_ATTRS on backend lacking it with empty attrs
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
阅读 rust/crates/dataplane/src/session_engine.rs 的1269–1277行,了解迁移能力规划,然后将其行为与 pkg/proxy/backend/authenticator.go 的420–422行进行比较。检查后端未通告该能力时,规划的 CONNECT_ATTRS 掩码如何处理空迁移属性。完成标准是 Rust 与 Go 的行为一致,并在这种情况下省略 CONNECT_ATTRS;本地 RED 运行的名称为 run.tiproxy-rust-dataplane.migration-connect-attrs-capability.20260902.RED。
由索引模型根据 Issue 内容生成。
描述
Migrated from bb7133/tiproxy#193. Original author:
wjhuang2016; created:2026-09-02T12:43:18Z; source body SHA-256:a9f5676c92f38a66c6e88931d1a5d20eb299a152cdcd301aa7cd984e7c4d64f4.
Rust dataplane rewrite parity/functional RED
- Snapshot commit:
60efdf5e6e8226423df85033534ad748ccb129db - Run:
run.tiproxy-rust-dataplane.migration-connect-attrs-capability.20260902.RED
Problem
Go writeAuthHandshake only ORs CONNECT_ATTRS when len(resp.Attrs)>0; with empty attrs and backend lacking it, Go omits. Rust keeps CONNECT_ATTRS from planned mask even if backend lacks it.
Claim
when migration attributes are empty and the backend does not advertise CONNECT_ATTRS, Rust must omit CONNECT_ATTRS like Go.
Source anchors
- pkg/proxy/backend/authenticator.go:420-422 len(resp.Attrs)>0
- rust/crates/dataplane/src/session_engine.rs:1269-1277 migration capability planning
Boundary
- Before: Rust keeps CONNECT_ATTRS when backend lacks it
- After: Go omits CONNECT_ATTRS when attrs empty and backend lacks it
Local evidence
run.tiproxy-rust-dataplane.migration-connect-attrs-capability.20260902.RED
- 主要语言
- Go
- 星标
- 73
- 派生
- 40
- 平均合并
- 14 小时 18 分钟
- 30 天内合并 PR
- 10
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingcap/tiproxy 的其他 Issue
-
migration:bb7133-tiproxy
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
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
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
migration:bb7133-tiproxy
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
[BUG]未关闭
难度 2/5 1-3 小时 新手友好度 65/100
kagent-dev/kagent#3385 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
theagentrouter/agent-router#2926 ·
维护者通常 1 天内回复
-
meta
难度 2/5 1-3 小时 新手友好度 64/100
last9/last9-mcp-server#443 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
ray-project/kuberay#5454 ·
-
bug
难度 2/5 1-3 小时 新手友好度 80/100
aws/aws-network-policy-agent#723 ·
维护者通常 1 天内回复