New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HUDI-2461] Support out of order commits in MDT with completion time view #9871
Conversation
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/CompletionTimeQueryView.java
Outdated
Show resolved
Hide resolved
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/CompletionTimeQueryView.java
Outdated
Show resolved
Hide resolved
...di-client-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadataWriter.java
Show resolved
Hide resolved
f0a1258
to
975e7bc
Compare
...ient/hudi-java-client/src/test/java/org/apache/hudi/client/TestJavaHoodieBackedMetadata.java
Show resolved
Hide resolved
...hudi-client-common/src/main/java/org/apache/hudi/client/timeline/HoodieTimelineArchiver.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution, I have left some comments.
ea5ea6e
to
a6b8579
Compare
…view Use normal instant time for compaction in MDT Revert "Use normal instant time for compaction in MDT" This reverts commit 6176139. Fix some tests Fix more tests
rebase
a6b8579
to
65517de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danny0405 Please review again, i've moved the check based on your suggestion.
@@ -1221,35 +1222,6 @@ public void testArchiveTableWithMetadataTableCompaction() throws Exception { | |||
commitsAfterArchival); | |||
} | |||
|
|||
@Test | |||
public void testArchiveCommitsWithCompactionCommitInMetadataTableTimeline() throws Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test is redundant and uses dummy instants. we're already checking archival with compaction in metadata table in several other tests such as testArchiveTableWithMetadataTableCompaction
and testArchivalAndCompactionInMetadataTable
Thanks for the contribution @codope , I have reviewed and created a patch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, we can land it once all the CI tests pass.
Change Logs
Metadata table (MDT) has special handling for compaction. This PR ensures MDT compaction is handled in completion time based filesystem view. Previously, out-of-order commit tests were disabled. This PR now enables that test to show the file slicing happens correctly.
NOTE: This PR does not remove the limitation of single writer or OCC concurrency mode from MDT. That will be tackled separately.
Impact
Support out of order commits due to compaction in MDT with completion time view.
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
ticket number here and follow the instruction to make
changes to the website.
Contributor's checklist