BigData / Apache Hudi Interview Questions
How do you perform a rollback in Hudi?
A rollback reverts an inflight or failed commit, undoing any partial data it wrote so the table returns to its last known-good, fully-completed state.
- Identify the problematic instant on the timeline (its state will show as inflight or requested rather than completed).
- Trigger the rollback, either automatically — Hudi does this itself on the next write attempt when it detects a stale inflight instant — or manually via the Hudi CLI or a rollback API call.
- Hudi removes the data files and log blocks written by that instant and removes its timeline entry.
- Confirm the timeline's latest completed instant is now the expected prior commit.
Rollback only removes an incomplete write; it does not undo a fully completed commit — that's what savepoints and restore operations are for.
More Related questions...