Skip to content

[HUDI-9364] Improve FileSystemView loading performance with large partitions#13247

Merged
yihua merged 2 commits intoapache:masterfrom
the-other-tim-brown:HUDI-9364
May 2, 2025
Merged

[HUDI-9364] Improve FileSystemView loading performance with large partitions#13247
yihua merged 2 commits intoapache:masterfrom
the-other-tim-brown:HUDI-9364

Conversation

@the-other-tim-brown
Copy link
Contributor

Change Logs

  • Reduce size of serialized File Group in FSView
  • Register the required classes for Kryo to reduce the size
  • Only compute valid instants once for MDT reader instead of per scanner

Impact

  • Reduces overhead of loading the FSView from the metadata table

Risk level (write none, low medium or high below)

Low

Documentation Update

Describe any necessary documentation update if there is any new feature, config, or user-facing change

  • The config description must be updated if new configs are added or the default value of the configs are changed
  • Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
    ticket number here and follow the instruction to make
    changes to the website.

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

// setup mocks
HoodieFileGroupId fileGroupId = new HoodieFileGroupId("path1", UUID.randomUUID().toString());
List<FileSlice> fileSlices = IntStream.range(1, 100).mapToObj(i -> new FileSlice(fileGroupId, "001",
new HoodieBaseFile("/tmp/" + FSUtils.makeBaseFileName("00" + i, "1-0-1", fileGroupId.getFileId())), Collections.emptyList())).collect(Collectors.toList());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the API changes so it causes build failure.

@github-actions github-actions bot added the size:S PR with lines of changes in (10, 100] label May 2, 2025
@hudi-bot
Copy link
Collaborator

hudi-bot commented May 2, 2025

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

Copy link
Contributor

@yihua yihua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yihua yihua merged commit 6fd1463 into apache:master May 2, 2025
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S PR with lines of changes in (10, 100]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants