Renewals return the start position instead of the current watermark
还没有人认领这个 Issue。
评估
调研方向
Start in faucet/subscribe.go at the renewal branch (L276-280) that answers with the stored position, then read the renewal upsert in pgstore/queries/events.sql (L282-288) to see why the column never moves. Compare against the watermark that deliveries compute in pgstore/queries/deliveries.sql (L71-89) and decide whether to select it or advance the stored value. Done means a renewal response carries the same safe-to-persist cursor as a delivery; run the pgstore tests after changing the query.
由索引模型根据 Issue 内容生成。
描述
Problem
A renewal answers with the subscription's stored position (faucet/subscribe.go). The upsert keeps that value unchanged on a renewal of the same target (pgstore/queries/events.sql), and no other query moves it. It is where delivery started, not where it is now.
The spec describes the refresh cursor as a "safe-to-persist watermark; advances the client's cursor even if no events arrive before the next refresh" (events.mdx L439, see also L447).
Effect
A client that persists the cursor from each refresh, as the spec suggests, moves its cursor back to the start on every renewal. After a lapse it resubscribes from there and gets every event since the start again. I read this from the code and did not run it.
Proposal
Return the same watermark that deliveries carry (pgstore/queries/deliveries.sql) in the renewal response.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
- 主要语言
- Go
- 星标
- 1
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/faucet 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 28/100
-
难度 4/5 3-5 天 新手友好度 30/100
-
难度 3/5 1-2 天 新手友好度 62/100
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
GetBatchResponseById panics for items without a body (204/302) and for unknown ids可能已有人在做 @0z5a 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
bug
难度 2/5 1-3 小时 新手友好度 80/100
JuliusBrussee/caveman#1567 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
bug postgresql
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复