[storage.cassandra] accepts unknown keys silently
维护者通常 2 天内回复
评估
调研方向
阅读 crates/storage-cassandra/src/config.rs,并将其中的配置属性与 crates/storage-postgres/src/config.rs 进行比较。添加未知键反序列化测试,然后检查部署 fixture 和 init 模板,找出结构体中不存在的键。当拼写错误的键导致反序列化失败,并且 fixture 和模板使用受支持的键时,即为完成。
由索引模型根据 Issue 内容生成。
描述
CassandraStorageConfig (crates/storage-cassandra/src/config.rs:11) is the one configuration struct without #[serde(deny_unknown_fields)]. Every other section, including PostgresStorageConfig (crates/storage-postgres/src/config.rs:10), refuses to start on an unknown key with an "unknown field" error. In [storage.cassandra] a misspelled key (replication_factr = 3) or a key from another backend is ignored silently and the default applies.
The configuration reference (#537) names the exception. The fix is the one attribute, plus a test that a misspelled key fails deserialization, and a check of the deployment fixtures and the init template for any key the struct does not have, since those would start failing. It changes what the server accepts, which is why it is not part of the documentation change.
Found while checking every configuration key against the code that reads it, for #494.
- 主要语言
- Rust
- 星标
- 517
- 派生
- 60
- 平均合并
- 2 天 23 小时
- 30 天内合并 PR
- 25
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ExtendDB/extenddb 的其他 Issue
-
backend:mongodb bug
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 2 天内回复
-
backend:cassandra bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
backend:cassandra bug
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
查看 ExtendDB/extenddb 的全部 Issue
相似的 Issue
-
build.yml: macOS arm64 DMG fails, cargo missing on the macos-26 runner image可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
getopenscreen/openscreen#1423 ·
维护者通常 1 天内回复
-
bug good first issue python
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
feature
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
bug: remove the "not stable yet" warning from DataReplacement commits可能已有人在做 @lance-gatefixer 今天认领。 未关闭bug
难度 1/5 1 小时以内 新手友好度 84/100
lance-format/lance#10433 ·
维护者通常 3 天内回复
-
vorbis: Inverse coupling runs in wrong order可能已有人在做 @computerfan 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100