cli: poll messages as a consumer group, from a timestamp, and in follow mode
I maintainer di solito rispondono entro 2 giorni
@marvelefe ci sta già lavorando.
Dal 25/10/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Start with core/cli/src/commands/binary_message/poll_messages.rs and the IggyConsumer implementation in core/sdk/src/clients/consumer.rs; compare the existing poll options with PollingStrategy::timestamp in core/common/src/types/message/polling_strategy.rs. Check the HTTP consumer-group limitation in core/sdk/src/http/consumer_groups.rs and account for the noted group/rebalancing behavior. Done means the CLI supports group, timestamp and follow modes with the specified conflicts, cleanup, transport rejection and auto-commit help text.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
iggy message poll reads one batch from one partition as a regular consumer.
- It always polls as a regular consumer (
core/cli/src/commands/binary_message/poll_messages.rs:64). You cannot read a topic the way a group member reads it. - It can start from
--offset,--first,--lastor--next(:55), but not from a timestamp. The SDK hasPollingStrategy::timestamp(core/common/src/types/message/polling_strategy.rs:72). - It reads one batch and exits. To watch a live partition, you must run it in a shell loop, for example with
--next --auto-commit. Each run connects and logs in again.
Proposal
- Add
-g, --consumer-group <GROUP>. The CLI joins the group and polls the partitions that the server assigns to it. On exit, it leaves the group, also after Ctrl-C or an error.-gconflicts with-c,--offsetand<PARTITION_ID>. - Add
--timestamp <TIME>. Accept an RFC 3339 time, Unix microseconds, or a duration back from now (15min). - Add
--follow. Keep polling until Ctrl-C, and wait for--poll-interval(default100ms) after an empty batch. - Build the group and follow modes on
IggyConsumer(core/sdk/src/clients/consumer.rs). It already joins the group, tracks the offset of each partition, commits, and leaves the group on shutdown. Turn off its automatic group creation.
Notes
- A member that disconnects without a leave keeps its partitions until
consumer_group.session_timeout(default 30 s) expires. - A join moves partitions from other members. A partition with uncommitted polled messages moves only after its owner commits them, or after
consumer_group.rebalancing_timeout(default 30 s). So a single-gpoll on a busy group often gets no partition. #4391 can also leave a new member without a partition. - With
--auto-commit, the group offset moves past the messages that the CLI prints, so the other members never get them. The help text must say this. - Over HTTP,
-gcannot work, because a group join returnsFeatureUnavailable(core/sdk/src/http/consumer_groups.rs:116). Reject-gwith--transport httpbefore the CLI connects. - The server has no long poll yet. When #3470 (deferred polling timeout) lands, use it in follow mode.
- Lingua principale
- Rust
- Stelle
- 5.3k
- Fork
- 548
- Merge medio
- 2g 20h
- PR unite (30g)
- 194
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/iggy
-
go good first issue test
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
go good first issue test
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 2 giorni
-
go good first issue test
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
good first issue java test
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 2 giorni
-
good first issue javascript test
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 2 giorni
Issue simili
-
marketing
Difficoltà 2/5 Mezza giornata Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
S: Untriaged T: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
libnyanpasu/clash-nyanpasu#6537 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 62/100
tauri-apps/tao#1445 ·
I maintainer di solito rispondono entro 1 giorno
-
bug P3
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
nearai/compose-manager#95 ·
I maintainer di solito rispondono entro 1 giorno