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

Aperta
#19,026 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@shivadarshan-devadiga ci sta già lavorando.

Dal 18/11/2026.

  • #19027 di @shivadarshan-devadiga — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
java
Ambito
databases

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Java
Stelle
9.4k
Fork
3.7k
Merge medio
2g 15h
PR unite (30g)
169

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/iceberg

Tutte le issue di apache/iceberg

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.