BigData / Apache Hudi Interview Questions
Explain the execution flow of a Merge-on-Read compaction?
Compaction on a MoR table follows a two-phase schedule-then-execute flow, which is deliberately split so scheduling can be cheap and frequent while the heavier execution work can run separately.
Scheduling freezes exactly which file slices and log blocks are included, so ingestion can keep writing new log blocks after that point without interfering with the in-progress compaction. Execution then reads each frozen file slice's base file plus its log blocks, applies the payload class's merge logic record by record, and writes out a new, fully-merged base file version once done.
More Related questions...