Geo topics: follow a peer's manifests
维护者通常 2 天内回复
@krishvishal 已经在做这个了。
开始于 2026年11月18日。
评估
这个 Issue 还没有评估数据。
描述
Summary
A geo topic copies data between clusters in different datacenters through their object stores. A cluster serves the geo topics of a peer as shadow topics, and their partitions read the peer's log from the peer's store. This issue keeps each shadow partition up to date with the manifests that the origin publishes. A manifest lists the segments of one partition that the origin's store holds.
Scope
- Per peer, a poller finds the changed manifests with one LIST of the peer's
meta/prefix. It reads only the manifests that changed, with a conditional GET. The poll interval is configurable. - The cluster applies a changed manifest to its shadow partition. New segments go to the end of the log, and a moved trim point drops segments from the front.
- The cluster commits the applied state through its own consensus. Every replica then serves the same range, and a restart never goes back.
- The cluster refuses a manifest that goes back, names another incarnation or fails validation. It raises an alarm and applies nothing.
- While a peer store is slow or down, the poller backs off and the partition keeps serving what it holds. Nothing else on the node is affected. The poller uses its own tier service class and quota.
- Metrics per peer: how far behind the origin's published state each shadow partition is, the last poll that succeeded, and request counts.
Acceptance criteria
- Two clusters run on the
fsbackend. A shadow partition catches up with each manifest change within one poll interval. - A consumer that reads a shadow topic across manifest updates sees every message once, in the origin's order.
- A damaged or regressing manifest changes nothing and raises the alarm.
- An outage of the peer store costs no local request budget beyond the poller's own quota.
Notes
- Decision: shard 0 of each node that is the primary of a shadow partition runs the poller. Every interval, it lists
meta/{stream_id}/of each peer stream that has a shadow stream. All ofmeta/also holds every fresh object of the peer, so the poller does not list it. Shard 0 hands each changed manifest to the shard that owns the partition. That shard, as the partition's primary, reads the manifest and proposes the change. - Decision: a new partition state machine holds the applied manifest. A command carries the manifest's header and only the segments after the last one that stayed the same. A large catch-up takes several commands, so each stays under the command size limit.
- Decision: the poll interval is
[geo] manifest_poll_interval, 5 seconds by default. - A listing returns the etag of each object, so the poller reads only the manifests whose etag changed.
- Builds on #4930 (partition manifests), #4964 (reading a peer's log) and #4982 (shadow streams).
- 主要语言
- Rust
- 星标
- 5.3k
- 派生
- 548
- 平均合并
- 2 天 20 小时
- 30 天内合并 PR
- 194
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/iggy 的其他 Issue
-
go good first issue test
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
go good first issue test
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 2 天内回复
-
go good first issue test
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
good first issue java test
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 2 天内回复
-
good first issue javascript test
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 2 天内回复
相似的 Issue
-
marketing
难度 2/5 半天 新手友好度 62/100
维护者通常 1 天内回复
-
S: Untriaged T: Bug
难度 2/5 1-3 小时 新手友好度 72/100
libnyanpasu/clash-nyanpasu#6537 ·
维护者通常 1 天内回复
-
难度 2/5 1 小时以内 新手友好度 62/100
tauri-apps/tao#1445 ·
维护者通常 1 天内回复
-
bug P3
难度 1/5 1-3 小时 新手友好度 88/100
-
难度 1/5 1 小时以内 新手友好度 65/100
nearai/compose-manager#95 ·
维护者通常 1 天内回复