hudi icon indicating copy to clipboard operation
hudi copied to clipboard

[SUPPORT] Hudi archive stopped working

Open zuyanton opened this issue 4 years ago • 9 comments

Describe the problem you faced

Hi Team,

we have been using Hudi for over a year now. We have 50+ tables running incremental updates every 10 minutes . We have noticed that one of our table stopped archiving commits . Symptoms : we see that ".hoodie/archived" folder does not contain any new files generated past early August . We do see thousands of commit files in ".hoodie" folder created from early August till present. As far as we can tell only single table is affected. All tables use the same hudi parameters : "hoodie.consistency.check.enabled true" "hoodie.clean.automatic true" "hoodie_write_type COPY_ON_WRITE" "hoodie.cleaner.commits.retained 72" "hoodie.payload.ordering.field integ_key" "hoodie.datasource.write.payload.class org.apache.hudi.common.model.DefaultHoodieRecordPayload" "hoodie.metadata.enable true" "hoodie.metadata.validate true" "hoodie.keep.min.commits 100" "hoodie.keep.max.commits 150"

Not sure how to reproduce the issue since it looks like the issue only affects one of the 50 tables. Any suggestions on how we can debug it further will be helpful.

Environment Description

  • Hudi version : 0.8.0

  • Spark version : 2.4

  • Hive version :

  • Hadoop version :

  • Storage (HDFS/S3/GCS..) : S3

  • Running on Docker? (yes/no) : no

zuyanton avatar Dec 28 '21 00:12 zuyanton

Can you post the contents of .hoodie. And if you can enable debug logs and post it here, would be helpful. wanted to see why archival is not kicking in.

nsivabalan avatar Dec 28 '21 21:12 nsivabalan

@nsivabalan do you mean content of .hoodie folder ? - its bunch of old commit files plus following subfolders ".aux", ".temp", "metadata", "archived" image

zuyanton avatar Dec 30 '21 04:12 zuyanton

I see you have enabled metadata table. Can you try disabling metadata table and give it a try. I am not very sure on metadata table nuances in 0.8.0, but with 0.10.0, if data table has any pending operations, metadata table may not compact and so archival in data table may be fenced as well due to this.

nsivabalan avatar Dec 30 '21 12:12 nsivabalan

@zuyanton : hey, do you have any updates for us. CC @prashantwason does something pop up for you.

nsivabalan avatar Jan 09 '22 05:01 nsivabalan

@zuyanton : Do you have any updates for us.

nsivabalan avatar Jan 18 '22 11:01 nsivabalan

I see there is a pending rollback in data timeline. So, metadata compaction may not kick in if there are any pending operations in data timeline. and archival in datatable may not proceed if metadata compaction does not kick in. CC @manojpec @yihua

nsivabalan avatar Jan 20 '22 01:01 nsivabalan

@zuyanton : is there any updates on this end. We are looking to fix all bugs around metadata table. would be nice if you can respond to above clarifications

nsivabalan avatar Feb 14 '22 18:02 nsivabalan

@zuyanton : if we don't get more info, we might have to close out the github issue. sorry. feel free to re-open if you at still stuck and looking for assistance.

nsivabalan avatar Feb 28 '22 20:02 nsivabalan

@nsivabalan I observed same thing here. rollbacks on the timeline didn't get processed in the flink engine. compact pending on the rollbacks, and marker cleaning pending on compacts, causing an extra large timeline.

in the spark compact process, the rollbacks are processed though, not sure if flink compact should do the same.

zinking avatar Feb 13 '23 02:02 zinking