Skip to content

Rollback inflight indexing does not clean table config inflight MDT partition #17169

Description

@hudi-bot

steps:

latest hudi master branch (as of aug 24th)

create index on table inflight and writer crash

run cleaner table service. instants are rolled back, but inflight MDT partition in table config is not updated accordingly.

Steps to reproduce:

  • Start async index building for a decent sized data table. (say rli). We can use HoodieIndexer for this purpose.
  • Crash the index building process mid-way. Atleast we should have the requested and inllight in the timeline. or atelast the requested.
  • hoodie.properties will have a reference to the "rli" as part of hoodie.properties (hoodie.table.metadata.partitions.inflight).
  • Run HoodieIndexer to drop the RLI index which failed mid-way.
  • hoodie.properties missed to clean up the entry for "hoodie.table.metadata.partitions.inflight".

Expected behavior:
once rollback or dropping of index command completes, we should not see the rli as part of "hoodie.table.metadata.partitions.inflight" in hoodie.properties

JIRA info

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions