TheR1sing3un opened a new issue, #12338:
URL: https://github.com/apache/hudi/issues/12338

   In Consistent-Bucket-Index file layout:
   there are two type of file for each versioned bucket metadata:
   1. `{instant}.hashing_metadata`: created in each bucket resizing.
   2. `{instant}.commit`: created after `instant` is completed.
   <img width="1055" alt="image" 
src="https://github.com/user-attachments/assets/01267094-25c6-4be4-8981-ae1e5d0490c2";>
   
   All these two type of files should all be stored in this path: 
   <img width="1274" alt="image" 
src="https://github.com/user-attachments/assets/91369dea-1d2f-4984-a8bd-39f932e24f63";>
   When `loadMetadata`, will load all these two type of files from above path.
   <img width="1130" alt="image" 
src="https://github.com/user-attachments/assets/39ce912d-646d-4250-8c6e-e637b331a768";>
   But, I find that the `{instant}.commit` file will not be stored in this 
hash-metadata path.
   <img width="1102" alt="image" 
src="https://github.com/user-attachments/assets/a5f805da-cdb5-461c-ba0d-7a474cfb6c4d";>
   This file will be stored in data path, which is 
`{basePath}/{partitionPath}/{instant}.commit`. So when 
`ConsistentBucketIndexUtils` load metadata for a partition, all files of this 
type will not be loaded because they are stored in the wrong location.
   
   For example:
   > .hashing_metadata
   
   
![image](https://github.com/user-attachments/assets/83288d9f-f22d-40d1-a3a7-15704a01524e)
   
   > .commit
   
   
![image](https://github.com/user-attachments/assets/3b8308fe-7241-4746-8bf6-c33a4e4cdd24)
   
   
   
   
   **_Tips before filing an issue_**
   
   - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)?
   
   - Join the mailing list to engage in conversations and get faster support at 
[email protected].
   
   - If you have triaged this as a bug, then file an 
[issue](https://issues.apache.org/jira/projects/HUDI/issues) directly.
   
   **Describe the problem you faced**
   
   A clear and concise description of the problem.
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   1.
   4.
   5.
   6.
   
   **Expected behavior**
   
   A clear and concise description of what you expected to happen.
   
   **Environment Description**
   
   * Hudi version :
   
   * Spark version :
   
   * Hive version :
   
   * Hadoop version :
   
   * Storage (HDFS/S3/GCS..) :
   
   * Running on Docker? (yes/no) :
   
   
   **Additional context**
   
   Add any other context about the problem here.
   
   **Stacktrace**
   
   ```Add the stacktrace of the error.```
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to