Hi Grant, Pachu,

Here are the contention results.

Summary:
1. A compaction fails when the connector commits a DV to one of its files
while it runs. For files updated on every commit, it succeeds with a chance
of about 1 - rewrite time / commit interval, so Pachu's concern holds there.
2. A compaction succeeds when the connector does not update its files in
the meantime. When the updates stay in recent data, a compaction that skips
those files, for example with a filter on the recent partitions, avoids the
conflict on both sides.
3. When the updates are spread over the table, the connector cannot avoid
it. That needs something like the compaction repair Pachu linked, a spec
change separate from #18003. #18003 does not block it, because the
connector commits ordinary DVs.
4. The connector also converts again when a compaction replaces a file
during its conversion. This grows with the conversion time, so a retry
should redo only what the compaction changed.

#18003 is part 1 and only adds the converter. In part 2, which wires the
conversion into the coordinator behind a setting that is off by default, I
will document points 1 to 3 as guidance and make the retry in point 4
cheaper.

With equality deletes, the same compaction always succeeded. This was
measured on local disk with one partition and a 5 s interval instead of
minutes. I can share the numbers and the harness if they help.

Thanks,
Koodin

2026년 11월 18일 (수) 오전 11:27, Pachu Shrinivas <
[email protected]>님이 작성:

> I worry about the low-latency streaming ingest use cases, where ingest
> jobs commit every 1-5 minutes - these commits will starve compaction jobs
> in the very partitions that need it the most. I think we should consider
> strategies like compaction repair (such as presented here:
> https://cdouglas.github.io/posts/2026/08/compaction-maps) as a way to
> allow concurrent deletes and compaction, but this will need a much broader
> consensus as it would need to be an enhancement in the Iceberg spec.
>
> Thanks,
> Pachu
>
> On Sun, Nov 15, 2026 at 8:04 PM koodin 9 <[email protected]> wrote:
>
>> Hi Grant,
>>
>> Not yet. The benchmark so far measures the conversion alone, with no
>> other writer on the table.
>>
>> There are two cases:
>>
>> - If the compaction commits first, the sink's commit fails, and the
>> coordinator converts again and retries.
>> - If the sink commits first, a compaction that is rewriting one of those
>> files fails. The sink cannot solve this on its own. When the changes are
>> spread over the table, I expect a rewrite that takes longer than the commit
>> interval to rarely succeed.
>>
>> I'll run compaction alongside repeated conversion commits and report the
>> retries, the commit latency, and how often the compaction succeeds. I'm
>> away until November 28, so I expect to share the results in the first half
>> of December.
>>
>> Thanks,
>> Koodin
>>
>> 2026년 11월 14일 (토) 오전 12:47, Grant Nicholas <
>> [email protected]>님이 작성:
>>
>>> > - koodin9 posted a benchmark on #18003 [2]: with increasing IDs a
>>> conversion stays under 0.4 s, while random UUID keys on a 10,000-file table
>>> read every file and take 2 to 42 s depending on storage latency.
>>>
>>> Were you able to test performance under commit contention with other
>>> writes (e.g. compaction)?
>>>
>>> Writing deletion vectors instead of equality deletes can generate
>>> significant contention. For delete-heavy low-latency commit workloads like
>>> Kafka Connect CDC, contention can result in many commit retries, increased
>>> latency, and decreased throughput.
>>>
>>> For context, my coworker Pachu wrote a blog post describing the
>>> contention in more detail
>>> <https://www.starburst.io/blog/equality-deletes-compaction-and-iceberg-v4/>
>>>
>>
>
> --
> Thanks,
> Pachu
>

Reply via email to