Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[storage.cassandra] accepts unknown keys silently

未关闭 适合新手
#540 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 2 天内回复

@LeeroyHannigan 已经在做这个了。

开始于 2026年10月25日。

  • #546 来自 @LeeroyHannigan —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
cassandra, rust
领域
database

调研方向

阅读 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ExtendDB/extenddb 的其他 Issue

查看 ExtendDB/extenddb 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。