You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2023/01/19 23:16:20 UTC

[GitHub] [hudi] jonvex opened a new pull request, #7711: [HUDI-5569] Files written by first commit/delta commit if it failed are detected as valid data files

jonvex opened a new pull request, #7711:
URL: https://github.com/apache/hudi/pull/7711

   ### Change Logs
   
   _Describe context and summary for this change. Highlight if any code was copied._
   
   ### Impact
   
   _Describe any public API or user-facing feature change or any performance impact._
   
   ### Risk level (write none, low medium or high below)
   
   _If medium or high, explain what verification was done to mitigate the risks._
   
   ### 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](https://hudi.apache.org/contribute/developer-setup#website) to make
     changes to the website._
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7711: [HUDI-5569] Files written by first commit/delta commit if it failed are detected as valid data files

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7711:
URL: https://github.com/apache/hudi/pull/7711#issuecomment-1397755517

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7711: [HUDI-5569] Files written by first commit/delta commit if it failed are detected as valid data files

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7711:
URL: https://github.com/apache/hudi/pull/7711#issuecomment-1398001739

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14469",
       "triggerID" : "fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14469) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7711: [HUDI-5569] Files written by first commit/delta commit if it failed are detected as valid data files

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #7711:
URL: https://github.com/apache/hudi/pull/7711#issuecomment-1399293288

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14469",
       "triggerID" : "fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7bc1a10e0eaea781ea54a08fd6fdb422412e7f2a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14535",
       "triggerID" : "7bc1a10e0eaea781ea54a08fd6fdb422412e7f2a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14469) 
   * 7bc1a10e0eaea781ea54a08fd6fdb422412e7f2a Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14535) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7711: [HUDI-5569] Files written by first commit/delta commit if it failed are detected as valid data files

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7711:
URL: https://github.com/apache/hudi/pull/7711#issuecomment-1397759988

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14469",
       "triggerID" : "fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14469) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7711: [HUDI-5569] Files written by first commit/delta commit if it failed are detected as valid data files

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #7711:
URL: https://github.com/apache/hudi/pull/7711#issuecomment-1399291953

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14469",
       "triggerID" : "fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7bc1a10e0eaea781ea54a08fd6fdb422412e7f2a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "7bc1a10e0eaea781ea54a08fd6fdb422412e7f2a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14469) 
   * 7bc1a10e0eaea781ea54a08fd6fdb422412e7f2a UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] hudi-bot commented on pull request #7711: [HUDI-5569] Files written by first commit/delta commit if it failed are detected as valid data files

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #7711:
URL: https://github.com/apache/hudi/pull/7711#issuecomment-1399324701

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14469",
       "triggerID" : "fb1f2609baf5b3f12a4ca5243f5205f2ba8f6367",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7bc1a10e0eaea781ea54a08fd6fdb422412e7f2a",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14535",
       "triggerID" : "7bc1a10e0eaea781ea54a08fd6fdb422412e7f2a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 7bc1a10e0eaea781ea54a08fd6fdb422412e7f2a Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=14535) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] nsivabalan commented on a diff in pull request #7711: [HUDI-5569] Files written by first commit/delta commit if it failed are detected as valid data files

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on code in PR #7711:
URL: https://github.com/apache/hudi/pull/7711#discussion_r1082026700


##########
hudi-common/src/main/java/org/apache/hudi/common/table/view/AbstractTableFileSystemView.java:
##########
@@ -104,9 +104,9 @@ private String getPartitionPathFor(HoodieBaseFile baseFile) {
   /**
    * Initialize the view.
    */
-  protected void init(HoodieTableMetaClient metaClient, HoodieTimeline visibleActiveTimeline) {
+  protected void init(HoodieTableMetaClient metaClient, HoodieTimeline visibleActiveCompletedTimeline) {

Review Comment:
   I will pull this down and ensure all callers to this method are passing in completed timeline. 



##########
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieDefaultTimeline.java:
##########
@@ -386,7 +386,13 @@ public boolean containsInstant(String ts) {
 
   @Override
   public boolean containsOrBeforeTimelineStarts(String instant) {
-    return getInstantsAsStream().anyMatch(s -> s.getTimestamp().equals(instant)) || isBeforeTimelineStarts(instant);
+    if (containsInstant(instant)) {

Review Comment:
   guess we can revert this change. I assume this is not required



##########
hudi-common/src/main/java/org/apache/hudi/common/model/HoodieFileGroup.java:
##########
@@ -146,14 +157,14 @@ public Option<FileSlice> getLatestFileSlicesIncludingInflight() {
   /**
    * Provides a stream of committed file slices, sorted reverse base commit time.
    */
-  public Stream<FileSlice> getAllFileSlices() {
-    if (!timeline.empty()) {
+  public Stream<FileSlice> getAllCommittedFileSlices() {

Review Comment:
   I don't think we need to fix the method name. we already have a method called isFileSliceCommitted. so that should suffice. 



##########
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/dto/FileGroupDTO.java:
##########
@@ -50,13 +50,13 @@ public static FileGroupDTO fromFileGroup(HoodieFileGroup fileGroup) {
     dto.partition = fileGroup.getPartitionPath();
     dto.id = fileGroup.getFileGroupId().getFileId();
     dto.slices = fileGroup.getAllRawFileSlices().map(FileSliceDTO::fromFileSlice).collect(Collectors.toList());
-    dto.timeline = TimelineDTO.fromTimeline(fileGroup.getTimeline());
+    dto.timeline = TimelineDTO.fromTimeline(fileGroup.getVisibleActiveCompletedTimeline());

Review Comment:
   may be we should store entire timeline in DTO (complete write timeline).
   while constructing the FileGroup from DTO object, we can split it into complete and entire write timeline. wdyt



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [hudi] jonvex closed pull request #7711: [HUDI-5569] Files written by first commit/delta commit if it failed are detected as valid data files

Posted by "jonvex (via GitHub)" <gi...@apache.org>.
jonvex closed pull request #7711: [HUDI-5569] Files written by first commit/delta commit if it failed are detected as valid data files
URL: https://github.com/apache/hudi/pull/7711


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org