Skip to content

Conversation

@codope
Copy link
Member

@codope codope commented Apr 7, 2022

What is the purpose of the pull request

HUDI-3454
There were some paths where we did not init partition while building log record scanner. Fixed all such code paths.

Brief change log

  • Depend on FSUtils#getRelativePartitionPath(basePath, logFilePath.getParent) to get the partition.
  • If the list of log file paths in the split is empty, then fallback to usual behaviour.

Verify this pull request

(Please pick either of the following options)

This pull request is a trivial rework / code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end.
  • Added HoodieClientWriteTest to verify the change.
  • Manually verified the change by running a job locally.

Committer checklist

  • Has a corresponding JIRA in PR title & commit

  • Commit message is descriptive of the change

  • CI is green

  • Necessary doc changes done or have another open PR

  • For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@codope codope added the priority:blocker Production down; release blocker label Apr 7, 2022
@hudi-bot
Copy link
Collaborator

hudi-bot commented Apr 8, 2022

CI report:

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

@codope codope merged commit df87095 into apache:master Apr 8, 2022
.withDiskMapType(diskMapType)
.withBitCaskDiskMapCompressionEnabled(isCompressionEnabled)
.withPartition(getRelativePartitionPath(new Path(basePath), new Path(logFilePaths.get(0)).getParent()))
.build();
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we inline the fix into the HoodieMergedLogRecordScanner so that there is no need to change these classes ?

@danny0405
Copy link
Contributor

Left one comment and see if we can put some improvement here.

xushiyan pushed a commit that referenced this pull request Apr 14, 2022
…#5252)

* Depend on FSUtils#getRelativePartitionPath(basePath, logFilePath.getParent) 
to get the partition.

* If the list of log file paths in the split is empty, then fallback to usual behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:blocker Production down; release blocker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants