Cassandra: destroy lists no catalog table before --yes, because Cassandra refuses the listing query
维护者通常 5 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
调研方向
从 crates/storage-cassandra/src/bootstrapper.rs 中约第 860 行的 list_table_names 开始,阅读目录查询的 Err(_) 处理逻辑。检查 Cassandra 4.1 如何处理不限制 partition key 的表列表查询,以及 extenddb destroy 如何生成确认前的输出。完成标准是提示中列出将被删除的目录表和 keyspace;使用相关测试或报告中的 Cassandra 4.1 配置进行验证。
由索引模型根据 Issue 内容生成。
描述
On Cassandra, what extenddb destroy prints before --yes lists no table of the catalog, whatever the catalog holds. It prints --- Tables in catalog: and then (none), so the operator confirms without a list of what goes.
list_table_names (crates/storage-cassandra/src/bootstrapper.rs:860 on main at 2ef56139e) sends SELECT table_name FROM <catalog>.tables ORDER BY table_name. Cassandra 4.1 refuses that query because it doesn't restrict the partition key. Its error is "ORDER BY is only supported when the partition key is restricted by an EQ or an IN." The Err(_) arm then returns an empty list, so the refusal never reaches the operator.
Measured with cqlsh on a table of the catalog's key shape, and with destroy without --yes from #1173's head on one cassandra:4.1 node, which printed (none). list_table_names is the same on main.
The keyspaces destroy drops are also printed only in the --yes run, so the prompt names none of them either.
- 主要语言
- Rust
- 星标
- 517
- 派生
- 60
- 平均合并
- 4 天 23 小时
- 30 天内合并 PR
- 134
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ExtendDB/extenddb 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 5 天内回复
查看 ExtendDB/extenddb 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
antithesishq/bombadil#473 ·
维护者通常 2 天内回复
-
autofixer: follow-up
难度 2/5 1-3 小时 新手友好度 75/100
tursodatabase/turso#12217 ·
维护者通常 1 天内回复
-
Declare the CMS schema library in the optional recipients extra可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area:python in-progress
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
auth-security bug contracts
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 2 天内回复
-
marketing
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复