Geo topics: follow a peer's manifests
Maintainer thường phản hồi trong vòng 2 ngày
@krishvishal đang làm issue này rồi.
Từ ngày 18/11/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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).
- Ngôn ngữ chính
- Rust
- Star
- 5.3k
- Fork
- 548
- Merge trung bình
- 2 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 194
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/iggy
-
go good first issue test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
go good first issue test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 2 ngày
-
go good first issue test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
good first issue java test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 2 ngày
-
good first issue javascript test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 2 ngày
Issue tương tự
-
marketing
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
S: Untriaged T: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
libnyanpasu/clash-nyanpasu#6537 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 62/100
tauri-apps/tao#1445 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug P3
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
nearai/compose-manager#95 ·
Maintainer thường phản hồi trong vòng 1 ngày