4paradigm / 4paradigm/OpenMLDB
`CallProcedure` request may not be routed to the best tablet when `partitionnum` > 1
- 主要语言
- C++
- 星标
- 1.7k
- 派生
- 331
- 平均合并
- 12 天 12 小时
- 30 天内合并 PR
- 1
描述
**Bug Description**
When the `partitionnum` of a table is > 1, `CallProcedure` request is routed to a random tablet.
Current logic is:
`pid = rand_.Uniform(pid_num);`
The result is wrong but we may have to fetch data from remote tablet to the routed tablet.
**Expected Behavior**
`CallProcedure` request should be routed to the tablet based on the pk.
**Steps to Reproduce**
1. `SQLSDKQueryTest.RequestProcedureTest`: change create statement with `options(partitionnum=8)`
2. will generate a proxy task
贡献指南
调研方向
The issue points to a routing logic in the code where `pid = rand_.Uniform(pid_num);` is used. Look for the `CallProcedure` request handling and the tablet routing logic. The test `SQLSDKQueryTest.RequestProcedureTest` needs to be modified to use `options(partitionnum=8)` to reproduce. Understanding the partitioning and primary key (pk) based routing is key. Check how other requests route based on pk to see the pattern.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- sql
- 领域
- backend, databases
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100