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 2021/11/25 07:25:55 UTC

[GitHub] [hudi] mincwang opened a new pull request #4117: [HUDI-2858] Table metadata returns empty for non-exist partition

mincwang opened a new pull request #4117:
URL: https://github.com/apache/hudi/pull/4117


   ## *Tips*
   - *Thank you very much for contributing to Apache Hudi.*
   - *Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.*
   
   ## What is the purpose of the pull request
   
   *(For example: This pull request adds quick-start document.)*
   
   ## Brief change log
   
   *(for example:)*
     - *Modify AnnotationLocation checkstyle rule in checkstyle.xml*
   
   ## 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.
   


-- 
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 #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750) 
   * 7c3e946df6a497cef81458a256118a5bc53efc8d 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] vinothchandar edited a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
vinothchandar edited a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979684047


   ```
   Caused by: java.lang.IllegalArgumentException: Invalid number of file slices: found=0, required=1
     at org.apache.hudi.common.util.ValidationUtils.checkArgument(ValidationUtils.java:40)
   ```
   
   this seems to be an issue with the metadata table not being bootstrapped. Can you check if/how `HoodieBackedTableMetadataWriter#bootstrapIfNeeded()` is invoked for Flink?


-- 
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] danny0405 commented on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
danny0405 commented on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979685899


   > ```
   > Caused by: java.lang.IllegalArgumentException: Invalid number of file slices: found=0, required=1
   >   at org.apache.hudi.common.util.ValidationUtils.checkArgument(ValidationUtils.java:40)
   > ```
   > 
   > this seems to be an issue with the metadata table not being bootstrapped. Can you check if/how `HoodieBackedTableMetadataWriter#bootstrapIfNeeded()` is invoked for Flink?
   
   It is not because of the metadata table not bootstrapped, it is because the flink request and check partition small files during write process. When we encounter a new partition, the error throws.
   
   The metadata is designed as a backend of the table files view, while the file-listing based view does not throw for new partition, we should follow that for metadata-based view too.


-- 
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 removed a comment on pull request #4117: [HUDI-2858] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-978905931


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1fd31c84f5c16969e81d9de4b6dbd845cc928490 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 removed a comment on pull request #4117: [HUDI-2858] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-978907397


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1fd31c84f5c16969e81d9de4b6dbd845cc928490 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741) 
   
   <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 #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1fd31c84f5c16969e81d9de4b6dbd845cc928490 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741) 
   * 2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750) 
   
   <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] mincwang commented on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
mincwang commented on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979683967


   the above are we meet errors,in `fetchAllFilesInPartition ` method will go to scan current all partition,but some partitions not exist in the  at that time


-- 
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 removed a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979704737


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782",
       "triggerID" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750) 
   * 7c3e946df6a497cef81458a256118a5bc53efc8d Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782) 
   * 698fb12cd0e301742d76eedfb16cb195a57ed8e8 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 #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750) 
   
   <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 removed a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979138779


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1fd31c84f5c16969e81d9de4b6dbd845cc928490 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741) 
   * 2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750) 
   
   <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] mincwang commented on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
mincwang commented on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979680043


   ```bash
   2021-11-24 18:17:59,751 WARN  org.apache.flink.runtime.taskmanager.Task                    [] - bucket_assigner (2/2)#1 (0724c51e4ff2ba977455d43ecbe1a749) switched from RUNNING to FAILED with failure cause: org.apache.hudi.exception.HoodieMetadataException: Failed to retrieve files in partition cosn://akd-hudi-1254213275/hudi/ods/ods_profit_inventory_queue_summary_snapshot/env_key=dev from metadata
     at org.apache.hudi.metadata.BaseTableMetadata.getAllFilesInPartition(BaseTableMetadata.java:124)
     at org.apache.hudi.metadata.HoodieMetadataFileSystemView.listPartition(HoodieMetadataFileSystemView.java:65)
     at org.apache.hudi.common.table.view.AbstractTableFileSystemView.lambda$ensurePartitionLoadedCorrectly$9(AbstractTableFileSystemView.java:290)
     at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
     at org.apache.hudi.common.table.view.AbstractTableFileSystemView.ensurePartitionLoadedCorrectly(AbstractTableFileSystemView.java:281)
     at org.apache.hudi.common.table.view.AbstractTableFileSystemView.getLatestFileSlicesBeforeOrOn(AbstractTableFileSystemView.java:622)
     at org.apache.hudi.sink.partitioner.profile.DeltaWriteProfile.smallFilesProfile(DeltaWriteProfile.java:64)
     at org.apache.hudi.sink.partitioner.profile.WriteProfile.getSmallFiles(WriteProfile.java:170)
     at org.apache.hudi.sink.partitioner.BucketAssigner.getSmallFileAssign(BucketAssigner.java:181)
     at org.apache.hudi.sink.partitioner.BucketAssigner.addInsert(BucketAssigner.java:139)
     at org.apache.hudi.sink.partitioner.BucketAssignFunction.getNewRecordLocation(BucketAssignFunction.java:255)
     at org.apache.hudi.sink.partitioner.BucketAssignFunction.processRecord(BucketAssignFunction.java:244)
     at org.apache.hudi.sink.partitioner.BucketAssignFunction.processRecordWithChangelogNormalize(BucketAssignFunction.java:209)
     at org.apache.hudi.sink.partitioner.BucketAssignFunction.processElement(BucketAssignFunction.java:177)
     at org.apache.flink.streaming.api.operators.KeyedProcessOperator.processElement(KeyedProcessOperator.java:83)
     at org.apache.flink.streaming.runtime.tasks.OneInputStreamTask$StreamTaskNetworkOutput.emitRecord(OneInputStreamTask.java:205)
     at org.apache.flink.streaming.runtime.io.AbstractStreamTaskNetworkInput.processElement(AbstractStreamTaskNetworkInput.java:134)
     at org.apache.flink.streaming.runtime.io.AbstractStreamTaskNetworkInput.emitNext(AbstractStreamTaskNetworkInput.java:105)
     at org.apache.flink.streaming.runtime.io.StreamOneInputProcessor.processInput(StreamOneInputProcessor.java:66)
     at org.apache.flink.streaming.runtime.tasks.StreamTask.processInput(StreamTask.java:423)
     at org.apache.flink.streaming.runtime.tasks.mailbox.MailboxProcessor.runMailboxLoop(MailboxProcessor.java:204)
     at org.apache.flink.streaming.runtime.tasks.StreamTask.runMailboxLoop(StreamTask.java:684)
     at org.apache.flink.streaming.runtime.tasks.StreamTask.executeInvoke(StreamTask.java:639)
     at org.apache.flink.streaming.runtime.tasks.StreamTask.runWithCleanUpOnFail(StreamTask.java:650)
     at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:623)
     at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:779)
     at org.apache.flink.runtime.taskmanager.Task.run(Task.java:566)
     at java.lang.Thread.run(Thread.java:748)
   Caused by: java.lang.IllegalArgumentException: Invalid number of file slices: found=0, required=1
     at org.apache.hudi.common.util.ValidationUtils.checkArgument(ValidationUtils.java:40)
     at org.apache.hudi.metadata.HoodieBackedTableMetadata.lambda$openReadersIfNeeded$2(HoodieBackedTableMetadata.java:244)
     at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
     at org.apache.hudi.metadata.HoodieBackedTableMetadata.openReadersIfNeeded(HoodieBackedTableMetadata.java:234)
     at org.apache.hudi.metadata.HoodieBackedTableMetadata.getRecordsByKeys(HoodieBackedTableMetadata.java:128)
     at org.apache.hudi.metadata.HoodieBackedTableMetadata.getRecordByKey(HoodieBackedTableMetadata.java:124)
     at org.apache.hudi.metadata.BaseTableMetadata.fetchAllFilesInPartition(BaseTableMetadata.java:188)
     at org.apache.hudi.metadata.BaseTableMetadata.getAllFilesInPartition(BaseTableMetadata.java:122)
     ... 27 more
   ```


-- 
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] vinothchandar commented on a change in pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
vinothchandar commented on a change in pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#discussion_r757215856



##########
File path: hudi-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadata.java
##########
@@ -121,7 +121,8 @@ private void initIfNeeded() {
 
   @Override
   protected Option<HoodieRecord<HoodieMetadataPayload>> getRecordByKey(String key, String partitionName) {
-    return getRecordsByKeys(Collections.singletonList(key), partitionName).get(0).getValue();
+    List<Pair<String, Option<HoodieRecord<HoodieMetadataPayload>>>> recordsByKeys = getRecordsByKeys(Collections.singletonList(key), partitionName);

Review comment:
       we get an exception now? is that the behavior?

##########
File path: hudi-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadata.java
##########
@@ -131,6 +132,10 @@ private void initIfNeeded() {
       HoodieFileReader baseFileReader = readers.getKey();
       HoodieMetadataMergedLogRecordReader logRecordScanner = readers.getRight();
 
+      if (baseFileReader == null && logRecordScanner == null) {
+        return Collections.emptyList();

Review comment:
       agree. with @danny0405 . that should be for empty partitions say. 

##########
File path: hudi-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadata.java
##########
@@ -241,6 +246,10 @@ private void initIfNeeded() {
         // Metadata is in sync till the latest completed instant on the dataset
         HoodieTimer timer = new HoodieTimer().startTimer();
         List<FileSlice> latestFileSlices = HoodieTableMetadataUtil.loadPartitionFileGroupsWithLatestFileSlices(metadataMetaClient, partitionName);
+        if (latestFileSlices.size() == 0) {
+          // empty partition
+          return Pair.of(null, null);

Review comment:
       returns nulls always make me nervous. Can we make the return type `Option<Pair<>>`? and return empty?




-- 
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 removed a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979723008


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782",
       "triggerID" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3783",
       "triggerID" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 7c3e946df6a497cef81458a256118a5bc53efc8d Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782) 
   * 698fb12cd0e301742d76eedfb16cb195a57ed8e8 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3783) 
   
   <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 removed a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979703144


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782",
       "triggerID" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750) 
   * 7c3e946df6a497cef81458a256118a5bc53efc8d Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782) 
   
   <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 #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782",
       "triggerID" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3783",
       "triggerID" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 698fb12cd0e301742d76eedfb16cb195a57ed8e8 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3783) 
   
   <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 removed a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-978969030


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1fd31c84f5c16969e81d9de4b6dbd845cc928490 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741) 
   
   <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] vinothchandar edited a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
vinothchandar edited a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979684047


   ```
   Caused by: java.lang.IllegalArgumentException: Invalid number of file slices: found=0, required=1
     at org.apache.hudi.common.util.ValidationUtils.checkArgument(ValidationUtils.java:40)
   ```
   
   this seems to be an issue with the metadata table not being bootstrapped. Can you check if/how `HoodieBackedTableMetadataWriter#bootstrapIfNeeded()` is invoked for Flink?
   
   It is not because of the metadata table not bootstrapped, it is because the flink request and check partition small files during write process. When we encounter a new partition, the error throws.
   
   The metadata is designed as a backend of the table files view, while the file-listing based view does not throw for new partition, we should follow that for metadata-based view too.


-- 
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 #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782",
       "triggerID" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3783",
       "triggerID" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 7c3e946df6a497cef81458a256118a5bc53efc8d Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782) 
   * 698fb12cd0e301742d76eedfb16cb195a57ed8e8 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3783) 
   
   <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 change in pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on a change in pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#discussion_r756944980



##########
File path: hudi-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadata.java
##########
@@ -131,6 +132,10 @@ private void initIfNeeded() {
       HoodieFileReader baseFileReader = readers.getKey();
       HoodieMetadataMergedLogRecordReader logRecordScanner = readers.getRight();
 
+      if (baseFileReader == null && logRecordScanner == null) {
+        return Collections.emptyList();

Review comment:
       shouldn't this return Collections.singletonList(Pair.of(key, Option.empty())) 




-- 
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 #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782",
       "triggerID" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750) 
   * 7c3e946df6a497cef81458a256118a5bc53efc8d Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782) 
   * 698fb12cd0e301742d76eedfb16cb195a57ed8e8 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 #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782",
       "triggerID" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 7c3e946df6a497cef81458a256118a5bc53efc8d Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782) 
   * 698fb12cd0e301742d76eedfb16cb195a57ed8e8 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 removed a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979702351


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750) 
   * 7c3e946df6a497cef81458a256118a5bc53efc8d 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 removed a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979183895


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750) 
   
   <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 removed a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979136958


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1fd31c84f5c16969e81d9de4b6dbd845cc928490 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741) 
   * 2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e 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] mincwang edited a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
mincwang edited a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979683967


   the above are we meet errors,in `fetchAllFilesInPartition ` method will go to scan current all partition,but some partitions files not exist in the  at that time


-- 
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 #4117: [HUDI-2858] Table metadata returns empty for non-exist partition

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1fd31c84f5c16969e81d9de4b6dbd845cc928490 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 #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1fd31c84f5c16969e81d9de4b6dbd845cc928490 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741) 
   * 2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e 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] danny0405 merged pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
danny0405 merged pull request #4117:
URL: https://github.com/apache/hudi/pull/4117


   


-- 
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 #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782",
       "triggerID" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750) 
   * 7c3e946df6a497cef81458a256118a5bc53efc8d Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782) 
   
   <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 #4117: [HUDI-2858] Table metadata returns empty for non-exist partition

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1fd31c84f5c16969e81d9de4b6dbd845cc928490 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741) 
   
   <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] vinothchandar commented on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
vinothchandar commented on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979684047


   ```
   Caused by: java.lang.IllegalArgumentException: Invalid number of file slices: found=0, required=1
     at org.apache.hudi.common.util.ValidationUtils.checkArgument(ValidationUtils.java:40)
   ```
   
   this seems to be an issue with the metadata table not being bootstrapped. Can you check if/how `HoodieBackedTableMetadataWriter#bootstrapIfNeeded()` is invoked for Flink?


-- 
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] mincwang edited a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
mincwang edited a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979683967


   the above are we meet errors,in `fetchAllFilesInPartition ` method will go to scan current all partition,but some partitions no files exists in the  at that time


-- 
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 #4117: [HUDI-2858] Table metadata returns empty for non-exist partition

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1fd31c84f5c16969e81d9de4b6dbd845cc928490 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741) 
   
   <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] danny0405 commented on a change in pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
danny0405 commented on a change in pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#discussion_r757181320



##########
File path: hudi-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadata.java
##########
@@ -131,6 +132,10 @@ private void initIfNeeded() {
       HoodieFileReader baseFileReader = readers.getKey();
       HoodieMetadataMergedLogRecordReader logRecordScanner = readers.getRight();
 
+      if (baseFileReader == null && logRecordScanner == null) {
+        return Collections.emptyList();

Review comment:
       I think we should not, the original code returns key based on the metadata data file content, but here we do not have any data file actually.




-- 
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 removed a comment on pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition

Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#issuecomment-979705486


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3741",
       "triggerID" : "1fd31c84f5c16969e81d9de4b6dbd845cc928490",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3750",
       "triggerID" : "2cb45a98d9c75e0dbda2ab6f0e4fb3e328f9b01e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782",
       "triggerID" : "7c3e946df6a497cef81458a256118a5bc53efc8d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "698fb12cd0e301742d76eedfb16cb195a57ed8e8",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 7c3e946df6a497cef81458a256118a5bc53efc8d Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=3782) 
   * 698fb12cd0e301742d76eedfb16cb195a57ed8e8 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