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
已在最新官方 main f72ca9efbeb3a7c673701e4a135cc6670c33cfde 本地单进程 MO + MongoDB 8.0.12 ReplicaSet 复核:正文涉及的 4 种显式 filter + residual/projection/order-limit 形态均稳定复现 3/3(共 12/12),仍报 ColumnExpressionExecutor.Evalpkg/sql/colexec/evalExpression.go:1685 index out of range panic。失败后基线查询可继续使用,最终 cursor open=134/close=134、pool checked_out=0。逐项证据见 Ariznawlll/mo-test-reports#26,commit c2152ec。
Activity
Ariznawlll commentedon Sep 7, 2026
补充复现证据(2026-09-07)
继续覆盖 #27536 允许的 pipeline stage 和外层查询组合后,确认同一类 panic 还可由外层排序触发:
该语句连续 3/3 返回:
对照与补充结果:
AND site_id='site-west':3/3 panicAND measurement > 0:3/3 panicORDER BY:3/3 panicAND 1=1:3/3 正常$match/$project/$set/$addFields/$unset/$limit/$skip/$count正向 pipeline 组合:各 3/3 正常5/74EXPLAIN对 residual 组合显示pushed=0、residual;CN 栈仍落在ColumnExpressionExecutor.EvalevalExpression.go:1685,随后为FunctionExpressionExecutor/Filter。Ariznawlll commentedon Sep 7, 2026
补充一组更小的复现:不叠加普通 residual,仅对显式
filter做普通行投影也会触发同一类 CN 越界 panic。在
mo-search-commit-4fdb9e916-20260907连续执行 3/3 均返回:SELECT measurement, device_id, site_id ...的 3/3 结果为index out of range [3] with length 3;显式 filter + 外层LIMIT 1也是 3/3 panic。相同 fixture 的普通无__mo_query行投影、显式 filter 的COUNT(*)和AND 1=1对照正常。堆栈仍落在pkg/sql/colexec.(*ColumnExpressionExecutor).Eval(evalExpression.go:1685)。目标 namespace 健康,基线仍为COUNT=5, SUM(measurement)=74。Ariznawlll commentedon Sep 8, 2026
已在最新官方 main
f72ca9efbeb3a7c673701e4a135cc6670c33cfde本地单进程 MO + MongoDB 8.0.12 ReplicaSet 复核:正文涉及的 4 种显式 filter + residual/projection/order-limit 形态均稳定复现 3/3(共 12/12),仍报ColumnExpressionExecutor.Evalpkg/sql/colexec/evalExpression.go:1685index out of range panic。失败后基线查询可继续使用,最终 cursor open=134/close=134、pool checked_out=0。逐项证据见 Ariznawlll/mo-test-reports#26,commitc2152ec。fix(mongodb): preserve residual filters for explicit queries (#28333) (…
Ariznawlll commentedon Sep 8, 2026
测试版本
main585a38efd152fadf216c8675b7b997a35ca8deb19e20c75f522037c7bc08ed0ff0d19ed8b449fdd44dfa553083e018df70ad6bee原问题验证
按 Issue 原始合法查询执行显式 filter + MO residual:
连续 3/3 返回
1,未再出现ColumnExpressionExecutor.Eval/evalExpression.go:1685越界 panic。Happy Path 覆盖
measurement > 0residual:3/3 返回1。site_id='site-west'residual:3/3 返回1。device-001。ORDER BY/LIMIT:3/3 返回device-001。explicit-filter-residual通过;完整官方 MongoDB E2E 为 26/26 PASS。COUNT=5, SUM(measurement)=74,10 路并发读取结果一致。Unhappy Path 覆盖
$out、$lookup、$function、未知 stage 均 fail-closed 拒绝,无 panic。5|74;最终 cursoropen=135, close=135,poolchecked_out=0。RestartCount=0、OOMKilled=false;MatrixOne 日志未发现 panic、fatal、OOM、越界或段错误。白盒验证
执行:
结果:PASS,
ok github.com/matrixorigin/matrixone/pkg/sql/compile。修复后 scan config 与 residual filter 使用同一 compile-owned Mongo node,相关 plan ownership/投影场景均通过 race 重复验证。回归测试
34aff8c5e2c8388514a194d5f5d3a5e5110cfe65,PR fix(mongodb): preserve residual filters for explicit queries (#28333) #28366。explicit-filter-residual。TestCompilePlanScopeMongoScanUsesConfiguredResidualFilter、TestCompilePreparedMongoScanDoesNotMutateCachedPlan等。测试证据
测试结论
测试通过。
fix(mongodb): preserve residual filters for explicit queries (matrixo…
fix(mongodb): preserve residual filters for explicit queries (matrixo…
fix(mongodb): preserve residual filters for explicit queries (matrixo…