Skip to content

Core: Parallelize the determining of reachable manifests during file cleanup - #5981

Merged
rdblue merged 1 commit into
apache:masterfrom
amogh-jahagirdar:reachability-cleanup
Oct 19, 2022
Merged

Core: Parallelize the determining of reachable manifests during file cleanup#5981
rdblue merged 1 commit into
apache:masterfrom
amogh-jahagirdar:reachability-cleanup

Conversation

@amogh-jahagirdar

Copy link
Copy Markdown
Contributor

Follow up PR to #5669.

1.) Parallelizing determining the reachable manifests given a set of snapshots

2.) Cleaning up issues in log messages #5669 (comment) and #5669 (comment)

Comment threadcore/src/main/java/org/apache/iceberg/ReachableFileCleanup.java Outdated
Comment threadcore/src/main/java/org/apache/iceberg/ReachableFileCleanup.java Outdated
@amogh-jahagirdaramogh-jahagirdar changed the title Core: Parallelize the determining of reachable manifests during snapshot expiration file cleanpCore: Parallelize the determining of reachable manifests during file cleanupOct 14, 2022
Comment threadcore/src/main/java/org/apache/iceberg/ReachableFileCleanup.java Outdated
Comment threadcore/src/main/java/org/apache/iceberg/ReachableFileCleanup.java Outdated
@amogh-jahagirdar
amogh-jahagirdarforce-pushed the reachability-cleanup branch 5 times, most recently from ed9e051 to b061989CompareOctober 15, 2022 04:04
Comment threadcore/src/main/java/org/apache/iceberg/ReachableFileCleanup.java Outdated
Comment threadcore/src/main/java/org/apache/iceberg/ReachableFileCleanup.java Outdated
Comment threadcore/src/main/java/org/apache/iceberg/ReachableFileCleanup.java Outdated
@amogh-jahagirdar
amogh-jahagirdar requested review from kbendick and rdblue and removed request for kbendick and rdblueOctober 16, 2022 16:57
@amogh-jahagirdar
amogh-jahagirdarforce-pushed the reachability-cleanup branch 2 times, most recently from 10eca9a to 24a456aCompareOctober 16, 2022 17:11
Comment threadcore/src/main/java/org/apache/iceberg/ReachableFileCleanup.java Outdated
Comment threadcore/src/main/java/org/apache/iceberg/ReachableFileCleanup.java Outdated
Comment threadcore/src/main/java/org/apache/iceberg/ReachableFileCleanup.java Outdated
@amogh-jahagirdar
amogh-jahagirdarforce-pushed the reachability-cleanup branch 2 times, most recently from 06cc886 to a205384CompareOctober 17, 2022 01:55

@jackye1995jackye1995 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good to me!

return;
}

currentManifestCallback.accept(manifestFile.copy());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Very minor, but it seems weird to copy here rather than in the callback. If the callback were a noop, we'd be doing work for nothing. Since we know it needs to be copied, it seems fine though.

@rdblue
rdblue merged commit 3ae58a1 into apache:masterOct 19, 2022
@rdblue

Copy link
Copy Markdown
Contributor

Thanks, @amogh-jahagirdar! Looks great.

@amogh-jahagirdar

Copy link
Copy Markdown
ContributorAuthor

Thanks for the reviews @rdblue@kbendick@jackye1995 !

zhongyujiang pushed a commit to zhongyujiang/iceberg that referenced this pull request Apr 16, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@amogh-jahagirdar@rdblue@kbendick@jackye1995