Java SDK: expose deleteSegments
Los mantenedores suelen responder en 2 días
@AmalenduManoj ya está trabajando en esto.
Desde el 2/10/2026.
- #4381 de @AmalenduManoj — cerrado sin fusionar
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 75/100
Línea de trabajo
Start with serde/CommandCode.java, VsrOperation.java, the blocking and async PartitionsClient interfaces, and the TCP and HTTP client files listed in the issue; compare their existing deletePartitions implementations. Check the payload format in core/binary_protocol/src/requests/segments/delete_segments.rs, then add the case to PartitionsClientBaseTest.java. Done means the new test passes for both TCP and HTTP clients.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The Rust client has SegmentClient::delete_segments (core/common/src/traits/segment_client.rs). The Java SDK has no method for it.
What to do
- Add a
Segmentenum withDELETE(503)toserde/CommandCode.java. The VSR operation is already mapped inVsrOperation.java. - Add
deleteSegments(StreamId streamId, TopicId topicId, Long partitionId, Long segmentsCount)to the blocking and asyncPartitionsClientinterfaces, next todeletePartitions. - Implement it in the TCP clients (
client/async/tcp/PartitionsTcpClient.java,client/blocking/tcp/PartitionsTcpClient.java), followingdeletePartitions. The payload is the stream identifier, the topic identifier, then the partition ID and the segments count as little-endianu32values (core/binary_protocol/src/requests/segments/delete_segments.rs). - Implement it in the HTTP client (
client/blocking/http/PartitionsHttpClient.java):DELETE /streams/{stream_id}/topics/{topic_id}/partitions/{partition_id}with asegments_countquery parameter. - Add a test to
PartitionsClientBaseTest.java. The base test runs for both TCP and HTTP.
Done when
The new test passes for both the TCP and HTTP clients.
- 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