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

   **Describe the problem you faced**
   I encountered data loss in hudi mor table. After compaction, a base file 
became smaller and lost data. The issue occurred on 2023-01-10 and I am only 
able to access archived commits.(The parquet and log files for those instants 
have already been deleted.) I have uploaded all the commits. Here is the 
timeline of the basefile: **8fb29db6-81da-4455-a08d-ba3e7ee36856-0**, it shows 
that its size was 116M until L23. However, it became 66M after compaction and 
lost 890k records.
   lineNum  |  commitTime   |  actionType   |  actionState  |  Plan
   
---------|---------------|---------------|---------------|---------------------------------------
   L16  | 20230110133240   |   compaction  |   REQUESTED   |   
{"baseInstantTime": "20230110130744", "deltaFilePaths": 
[".8fb29db6-81da-4455-a08d-ba3e7ee36856-0_20230110130744.log.1_53-7076606-255800368"],
 "dataFilePath": 
"8fb29db6-81da-4455-a08d-ba3e7ee36856-0_24-7076286-255788001_20230110130744.parquet",
 "fileId": "8fb29db6-81da-4455-a08d-ba3e7ee36856-0", "partitionPath": 
"daas_date=2022", "metrics": {"TOTAL_LOG_FILES": 1.0, "TOTAL_IO_READ_MB": 
116.0, "TOTAL_LOG_FILES_SIZE": 24243.0, "TOTAL_IO_WRITE_MB": 116.0, 
"TOTAL_IO_MB": 232.0}, "bootstrapFilePath": null}
   L17  |  20230110133240   |   compaction  |   INFLIGHT   |   
{"baseInstantTime": "20230110130744", "deltaFilePaths": 
[".8fb29db6-81da-4455-a08d-ba3e7ee36856-0_20230110130744.log.1_53-7076606-255800368"],
 "dataFilePath": 
"8fb29db6-81da-4455-a08d-ba3e7ee36856-0_24-7076286-255788001_20230110130744.parquet",
 "fileId": "8fb29db6-81da-4455-a08d-ba3e7ee36856-0", "partitionPath": 
"daas_date=2022", "metrics": {"TOTAL_LOG_FILES": 1.0, "TOTAL_IO_READ_MB": 
116.0, "TOTAL_LOG_FILES_SIZE": 24243.0, "TOTAL_IO_WRITE_MB": 116.0, 
"TOTAL_IO_MB": 232.0}
   L18  |  20230110133240   |   commit  |   COMPLETED   |   {\"fileId\": 
\"8fb29db6-81da-4455-a08d-ba3e7ee36856-0\", \"path\": 
\"daas_date=2022/8fb29db6-81da-4455-a08d-ba3e7ee36856-0_27-7076664-255801644_20230110133240.parquet\",
 \"prevCommit\": \"20230110130744\", \"numWrites\": 2060123, \"numDeletes\": 0, 
\"numUpdateWrites\": 99, \"totalWriteBytes\": 122155577, \"totalWriteErrors\": 
0, \"partitionPath\": \"daas_date=2022\", \"totalLogRecords\": 99, 
\"totalLogFiles\": null, \"totalUpdatedRecordsCompacted\": 99, \"numInserts\": 
0, \"totalLogBlocks\": 1, \"totalCorruptLogBlock\": 0, \"totalRollbackBlocks\": 
0, \"fileSizeInBytes\": 122155577}
   L19  |  20230110135603  |   commit  |   REQUESTED   |
   L20  |  20230110135603  |   commit  |   INFLIGHT   |  {\"fileId\": 
\"3c82ba35-b701-4f34-882a-167146036ab3-0\", \"path\": null, \"prevCommit\": 
\"20230110133240\", \"numWrites\": 0, \"numDeletes\": 0, \"numUpdateWrites\": 
108, \"totalWriteBytes\": 0, \"totalWriteErrors\": 0, \"partitionPath\": null, 
\"totalLogRecords\": 0, \"totalLogFiles\": null, 
\"totalUpdatedRecordsCompacted\": 0, \"numInserts\": 0, \"totalLogBlocks\": 0, 
\"totalCorruptLogBlock\": 0, \"totalRollbackBlocks\": 0, \"fileSizeInBytes\": 0}
   L21  |  20230110135603  |   commit  |   COMPLETED   |  {\"fileId\": 
\"8fb29db6-81da-4455-a08d-ba3e7ee36856-0\", \"path\": 
\"daas_date=2022/.8fb29db6-81da-4455-a08d-ba3e7ee36856-0_20230110133240.log.1_53-7077163-255815146\",
 \"prevCommit\": \"20230110133240\", \"numWrites\": 106, \"numDeletes\": 0, 
\"numUpdateWrites\": 106, \"totalWriteBytes\": 25777, \"totalWriteErrors\": 0, 
\"partitionPath\": \"daas_date=2022\", \"totalLogRecords\": 0, 
\"totalLogFiles\": null, \"totalUpdatedRecordsCompacted\": 0, \"numInserts\": 
0, \"totalLogBlocks\": 0, \"totalCorruptLogBlock\": 0, \"totalRollbackBlocks\": 
0, \"fileSizeInBytes\": 25777}  
   L22  |  20230110135817  |   compaction  |  REQUESTED   |   
{\"baseInstantTime\": \"20230110133240\", \"deltaFilePaths\": 
[\".8fb29db6-81da-4455-a08d-ba3e7ee36856-0_20230110133240.log.1_53-7077163-255815146\"],
 \"dataFilePath\": 
\"8fb29db6-81da-4455-a08d-ba3e7ee36856-0_27-7076664-255801644_20230110133240.parquet\",
 \"fileId\": \"8fb29db6-81da-4455-a08d-ba3e7ee36856-0\", \"partitionPath\": 
\"daas_date=2022\", \"metrics\": {\"TOTAL_LOG_FILES\": 1.0, 
\"TOTAL_IO_READ_MB\": 116.0, \"TOTAL_LOG_FILES_SIZE\": 25777.0, 
\"TOTAL_IO_WRITE_MB\": 116.0, \"TOTAL_IO_MB\": 232.0}, \"bootstrapFilePath\": 
null}
   L23  |  20230110135817  |   compaction  |  INFLIGHT   |  
{\"baseInstantTime\": \"20230110133240\", \"deltaFilePaths\": 
[\".8fb29db6-81da-4455-a08d-ba3e7ee36856-0_20230110133240.log.1_53-7077163-255815146\"],
 \"dataFilePath\": 
\"8fb29db6-81da-4455-a08d-ba3e7ee36856-0_27-7076664-255801644_20230110133240.parquet\",
 \"fileId\": \"8fb29db6-81da-4455-a08d-ba3e7ee36856-0\", \"partitionPath\": 
\"daas_date=2022\", \"metrics\": {\"TOTAL_LOG_FILES\": 1.0, 
\"TOTAL_IO_READ_MB\": 116.0, \"TOTAL_LOG_FILES_SIZE\": 25777.0, 
\"TOTAL_IO_WRITE_MB\": 116.0, \"TOTAL_IO_MB\": 232.0}, \"bootstrapFilePath\": 
null}
   L24  |  20230110135817  |   commit  |   COMPLETED   |   {\"fileId\": 
\"8fb29db6-81da-4455-a08d-ba3e7ee36856-0\", \"path\": 
\"daas_date=2022/8fb29db6-81da-4455-a08d-ba3e7ee36856-0_20-7077198-255819567_20230110135817.parquet\",
 \"prevCommit\": \"20230110133240\", \"numWrites\": 1169659, \"numDeletes\": 0, 
\"numUpdateWrites\": 54, \"totalWriteBytes\": 69228459, \"totalWriteErrors\": 
0, \"partitionPath\": \"daas_date=2022\", \"totalLogRecords\": 106, 
\"totalLogFiles\": null, \"totalUpdatedRecordsCompacted\": 106, \"numInserts\": 
52, \"totalLogBlocks\": 1, \"totalCorruptLogBlock\": 0, 
\"totalRollbackBlocks\": 0, \"fileSizeInBytes\": 69228459}
   
   
   **Expected behavior**
   
   A clear and concise description of what you expected to happen.
   
   **Environment Description**
   
   * Hudi version : 0.7.0
   
   * Spark version :2.4.4
   
   * Hive version :
   
   * Hadoop version :
   
   * Storage (HDFS/S3/GCS..) : S3
   
   * Running on Docker? (yes/no) : no
   
   
   **Additional [context**]
   


-- 
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