Flink: DynamicIcebergSink in overwrite mode silently drops delete files
I maintainer di solito rispondono entro 1 giorno
@zhengxiang378928908-code ci sta già lavorando.
Dal 9/11/2026.
- #18844 di @zhengxiang378928908-code — aperta
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 18/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- data-engineering, stream-processing
Direzione di ricerca
Start in flink/v2.3/flink/src/main/java/org/apache/iceberg/flink/sink/dynamic/DynamicCommitter.java, around replacePartitions, where only WriteResult data files are added to ReplacePartitions. Compare with the delete-file check in sink/IcebergCommitter.java near the 'Cannot overwrite partitions with delete files.' message. Done means overwrite with delete files is rejected in the dynamic sink, with a test in TestDynamicIcebergSink. A pull request (#18844) is already open, so coordinate with it first.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
With overwrite(true), DynamicCommitter.replacePartitions adds only the data files of each WriteResult to the ReplacePartitions operation (DynamicCommitter.java#L285-L298). Delete files produced by upserts or CDC deletes are omitted from the overwrite commit without being rejected, which can leave rows visible that those deletes should remove. The Flink docs state that OVERWRITE and UPSERT are mutually exclusive, and IcebergSink and FlinkSink enforce this when the job is built; IcebergCommitter also fails with Cannot overwrite partitions with delete files. The dynamic sink has neither check. The same overwrite commit path exists in Flink 1.20, 2.2 and 2.3.
Reproduction on main at 5b99042b4 (Flink 2.3, TestDynamicIcebergSink style): write the same row four times to an unpartitioned table with upsertMode=true, equality field id, and overwrite(true). In the observed run the job succeeds and reading the table returns 3 identical rows. The final overwrite replaced an earlier one-record data file with a three-record file, so the exact count depends on checkpoint timing. The last snapshot has replace-partitions=true and total-delete-files=0.
Expected: reject overwrite results that contain delete files, as the other sinks do, instead of committing only their data files.
- Lingua principale
- Java
- Stelle
- 9.4k
- Fork
- 3.7k
- Merge medio
- 2g 15h
- PR unite (30g)
- 169
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun 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/iceberg
-
Spark: Test INSERT targets with computed IDENTIFIER expressionsForse già presa @shivadarshan-devadiga l’ha presa 7 giorni fa. Apertaimprovement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[Core] TestAvroPartitionStatsHandler fails on Windows due to unclosed partition statistics scanForse già presa @Ankitkj1999 l’ha presa 9 giorni fa. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Flink: JdbcLockFactory concurrent lock-table creation can fail with "table already exists" and restart the jobForse già presa @adiranjan25 l’ha presa 16 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
apache/iceberg#18797 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Core: TableMetadata.Builder allows adding encryption keys to v1/v2 tablesForse già presa @yusufyildiz34 l’ha presa 29 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/iceberg#18632 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToListForse già presa @mohamed-elbrik l’ha presa 34 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/iceberg
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
speakeasy-api/speakeasy#2159 ·
I maintainer di solito rispondono entro 1 giorno
-
area: cli
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
vitruv-tools/NeoJoin#415 ·
I maintainer di solito rispondono entro 1 giorno
-
Quick Installation step 2 installs from the plugin manager, but the plugin isn't published yetAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
I maintainer di solito rispondono entro 6 giorni
-
account assessment course feature lecture
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug] 连接达梦时报错,agent 进程启动即退Apertabug db/dameng user-priority/P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno