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

MongoDB: ListTagsOfResource during a table's DELETING window returns no tags once the delete call has removed them

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

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

阅读 crates/storage-mongodb/src/table_engine.rs 中删除语句的顺序,并将其与 issue 中描述的 PostgreSQL、SQLite 和 Cassandra 行为进行比较。按照 issue 的建议,将 tag 的 delete_many 移到与 catalog 的 delete_one 同时运行,或在其之后运行。确认在表处于 DELETING 状态的整个期间,ListTagsOfResource 都会返回这些 tags。

由索引模型根据 Issue 内容生成。

描述

backend:mongodb bug

Summary

On MongoDB, DeleteTable marks the catalog document DELETING, drops the collections, removes the tag documents, and then deletes the catalog document. ListTagsOfResource sent after the tag removal and before the catalog delete answers 200 with Tags: []. Amazon DynamoDB returns the tags for the whole of its DELETING window (3 of 3, 2026-10-26, on the table ARN).

ExtendDB

PostgreSQL and SQLite delete the tag rows and the catalog row in one transaction, so the read returns the tags for the whole window. Cassandra with #598 removes the tags in the last statements of the delete, after the drops. MongoDB removes them after the collection drops and before the catalog delete (crates/storage-mongodb/src/table_engine.rs), so the read is empty for that stretch of the call. Measured by the #599 parity run with the document hand-set and by reading the delete's statement order.

Notes

Moving the tag delete_many to run with the catalog delete_one, or after it, closes the gap; the collection drops do not depend on it.

主要语言
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 摘要。