You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: JOIN operators retain previous execution buffers after Reset #30105
Deployment: macOS arm64 本地 Go UT,Go 1.27.1;不依赖数据库服务或多 CN
Date: 2026-10-13
Steps to reproduce
在上述 main commit 上,仅加入修复提交中的四个 join_generation_pool_test.go,不要加入 types.go 的修复。
运行:
go test ./pkg/sql/colexec/loopjoin ./pkg/sql/colexec/hashjoin ./pkg/sql/colexec/dedupjoin ./pkg/sql/colexec/indexjoin -run 'Test(LoopJoin|HashJoin|DedupJoin|IndexJoin)ResetReleasesGeneration' -count=3
Activity
fix: release JOIN reset buffers across execution generations (#30106)
Ariznawlll commentedon Oct 15, 2026
测试版本
main2ef9b3df7f009dd9ac8b5379b5c309b168ab32d7;修复 PR #30106 已合入,merge commit944b721d1b3705cdb51d1e26f1a04611a08c8401已包含在该 main 中。mo-cgo-test运行 Go UT;问题属于算子内部 off-heap 缓冲生命周期,不依赖 SQL 服务或多 CN。原问题验证
四个 JOIN 算子分别构造一轮执行分配后调用
Reset。修复前 issue 记录每条路径遗留 1048 字节;本轮在上述官方 main 上,HashJoin、LoopJoin、DedupJoin、IndexJoin 四条回归断言均确认Reset后旧MPool.CurrNB()回到基线,旧缓冲及回调不再保留。四组定向用例-race -count=20全部通过;未据此声称曾有 SQL 错值或线上 OOM。Happy Path 覆盖
loopjoin、hashjoin、dedupjoin、indexjoin四个包完整普通 UT 各运行 3 轮通过,覆盖现有正常算子路径。Unhappy Path 覆盖
Reset后旧 MPool 分配计数回到基线,旧回调不跨轮次保留;-race重复 20 轮未报竞态。白盒验证
Test(LoopJoin|HashJoin|DedupJoin|IndexJoin)ResetReleasesGeneration,四包-race -count=20全部通过。-count=3全部通过。断言不仅检查执行状态,还检查分配前后MPool.CurrNB()与指针/旧回调的清理状态。回归测试
Reset后的 off-heap 所有权与旧MPool回调,当前没有公开 SQL/协议可稳定断言这一内部状态;仅加 SQL 输出用例不能证明原缺陷已修复。若后续获得公开可复现的泄漏/结果错误,再补对应 MOTR 或 stability。big-data/chaos 不是该缺陷的触发前提。connect: connection refused失败,后续 TKE 用例未执行;未把该任务计作产品测试通过。本轮验收依据为本地定向/race/完整包 UT 与上述 Linux/x86 UT CI。测试证据
-race各 20/20 通过,四个完整包普通测试各 3/3 通过;原始资源不变量如上。测试结论
测试通过。