Core: RewriteManifests can commit stale sequence numbers and row IDs after a transaction retry

Abierto
#19,026 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@shivadarshan-devadiga ya está trabajando en esto.

Desde el 18/11/2026.

  • #19027 de @shivadarshan-devadiga — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
java
Área
databases

Línea de trabajo

Start with the failing regression test in TestRewriteManifests and trace how transaction retries rebuild the manifest list and validate deleted manifests. Check whether the replacement manifest retains the retried sequence number and first row ID, or whether the changed inherited metadata should cause rejection. Done means the regression passes across formats v2, v3, and v4; an open linked pull request is already addressing this issue.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
Apache Iceberg version

main (development)

Please describe the bug 🐞

When RewriteManifests explicitly replaces a manifest staged earlier in the same transaction, a concurrent commit can cause the transaction to retry and publish the replacement with metadata from the original attempt.

  1. Stage an append of file A with Transaction.newFastAppend().
  2. Read the staged manifest and write a replacement that copies its entries as EXISTING. In the same transaction, use RewriteManifests to delete the staged manifest and add the replacement.
  3. Append file B outside the transaction, then call commitTransaction().

On retry, the staged manifest keeps its path but can inherit a new sequence number and first row ID from the new manifest list. validateDeletedManifests checks presence by path, so the caller-supplied replacement can still be committed with the original values.

The regression test reports a stale data sequence number for file A in format v2 and overlapping row-ID ranges for files A and B in formats v3 and v4. A stale data sequence number can also affect which equality deletes apply.

The commit should preserve the sequence numbers and row IDs assigned on retry, or reject the replacement if its source manifest's inherited metadata changed.

Lenguaje dominante
Java
Estrellas
9.4k
Forks
3.7k
Merge medio
2 d 15 h
PR fusionados (30 d)
169

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/iceberg

Todos los issues de apache/iceberg

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.