Flink: DynamicIcebergSink in overwrite mode silently drops delete files
Los mantenedores suelen responder en 1 día
@zhengxiang378928908-code ya está trabajando en esto.
Desde el 9/11/2026.
- #18844 de @zhengxiang378928908-code — abierto
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 18/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- java
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Java
- Estrellas
- 9.4k
- Forks
- 3.7k
- Merge medio
- 2 d 15 h
- PR fusionados (30 d)
- 169
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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/iceberg
-
Spark: Test INSERT targets with computed IDENTIFIER expressionsPosiblemente ocupada @shivadarshan-devadiga la tomó hace 8 días. Abiertoimprovement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
[Core] TestAvroPartitionStatsHandler fails on Windows due to unclosed partition statistics scanPosiblemente ocupada @Ankitkj1999 la tomó hace 10 días. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Flink: JdbcLockFactory concurrent lock-table creation can fail with "table already exists" and restart the jobPosiblemente ocupada @adiranjan25 la tomó hace 17 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/iceberg#18797 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Core: TableMetadata.Builder allows adding encryption keys to v1/v2 tablesPosiblemente ocupada @yusufyildiz34 la tomó hace 29 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/iceberg#18632 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToListPosiblemente ocupada @mohamed-elbrik la tomó hace 34 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
Todos los issues de apache/iceberg
Issues similares
-
hermes-queue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
chrisalunlloyd2-sudo/mindpalace#430 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
unitycatalog/unitycatalog#2363 ·
Los mantenedores suelen responder en 1 día
-
area: editor P3 type: feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
halisonworks/mod-codeling#290 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
CVE-2026-63402 i18nextAbiertoarea/dependencies area/dependencies/js backport/26.6 backport/26.8 kind/cve severity/medium source/scan-dependencies status/triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 2 días