Read fresh PostgreSQL activity in the Casework lease test

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

找到 Casework 完成分发器的租约测试,并检查读取 pg_stat_activity 的观察器。检查观察器如何获取其 snapshot,以及它相对于 commit 和 session 清理的采样时机;添加新的观察或有界轮询,同时保留有关事务生命周期和行锁的断言。当暂时过时的观察不再导致失败,但仍然存在的事务或锁依旧会产生有用的断言时,测试就完成了。

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

描述

The Casework completion dispatcher test checks that a leased operation leaves no transaction or row lock behind. Its observer reads pg_stat_activity once. One integration run failed this observation and the unchanged rerun passed. Check whether the observer can retain a stale activity snapshot or sample during session cleanup.

Use a fresh observer snapshot and, if needed, bounded polling after commit. Retain the assertions for both transaction lifetime and row locks. A genuine remaining transaction or lock should still fail with a useful assertion.

主要语言
Rust
星标
2
派生
0
平均合并
13 小时 16 分钟
30 天内合并 PR
117

环境准备

从这里开始

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

registrystack/registry-stack 的其他 Issue

查看 registrystack/registry-stack 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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