Serve consumer offset reads from the partition primary
Los mantenedores suelen responder en 2 días
@numinnex ya está trabajando en esto.
Desde el 8/10/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 58/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- backend, distributed-systems
Línea de trabajo
Start in core/server/src/dispatch/partition.rs at handle_get_consumer_offset and read the TODO above it; compare the offset-write routing via GET_CONSUMER_OFFSET_ROUTING_CODE and the auto-commit path’s is_caught_up_primary check. Trace the related SDK behavior in ConsumerOffsetClient::get_consumer_offset and the Kafka gateway’s OffsetFetch/OffsetCommit flow. Done when a read immediately after a commit returns the committed offset rather than a stale replica value.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
handle_get_consumer_offset answers from the local replica of the partition (see the TODO above it in core/server/src/dispatch/partition.rs). The SDK sends the read to the node it is connected to, and that node can be a backup that lags the partition's primary. A read right after a store can then return the previous offset. #4392 documents this on ConsumerOffsetClient::get_consumer_offset. The Kafka gateway needs read-your-commits: an OffsetFetch right after an OffsetCommit must return the committed offset. Raised in the review of #4392.
Affected area / component
Iggy server, Rust SDK
Proposed solution
Route the read to the partition primary, the way GET_CONSUMER_OFFSET_ROUTING_CODE routes offset writes. Gate it on the server with is_caught_up_primary, as the auto-commit path does.
Alternatives considered
Define a follower-read contract, and let a caller that needs read-your-commits route the read itself.
- Lenguaje dominante
- Rust
- Estrellas
- 5.3k
- Forks
- 548
- Merge medio
- 2 d 20 h
- PR fusionados (30 d)
- 194
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/iggy
-
go good first issue test
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
go good first issue test
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 2 días
-
go good first issue test
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
good first issue java test
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 2 días
-
good first issue javascript test
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 2 días
Todos los issues de apache/iggy
Issues similares
-
marketing
Dificultad 2/5 Medio día Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
S: Untriaged T: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
libnyanpasu/clash-nyanpasu#6537 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Menos de una hora Aptitud para principiantes 62/100
tauri-apps/tao#1445 ·
Los mantenedores suelen responder en 1 día
-
bug P3
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
nearai/compose-manager#95 ·
Los mantenedores suelen responder en 1 día