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 2022/01/14 17:18:48 UTC

[GitHub] [hudi] andykrk opened a new issue #4604: [SUPPORT] Archive functionality fails

andykrk opened a new issue #4604:
URL: https://github.com/apache/hudi/issues/4604


   Environment Description
   
   Hudi version : 0.9.0
   
   Spark version : 2.4.7
   
   Storage (HDFS/S3/GCS..) : S3
   
   Config:
   
   'hoodie.datasource.write.precombine.field': 'col99', 
   'hoodie.datasource.write.recordkey.field': 'col1', 
   'hoodie.table.name': 'target_table', 
   'hoodie.insert.shuffle.parallelism': 50, 
   'hoodie.upsert.shuffle.parallelism': 50, 
   'hoodie.bulkinsert.shuffle.parallelism': 50, 
   'hoodie.finalize.write.parallelism': 50, 
   'hoodie.keep.min.commits': 29, 
   'hoodie.keep.max.commits': 30, 
   'hoodie.cleaner.commits.retained': 28, 
   'hoodie.metadata.enable': False, 
   'hoodie.datasource.write.table.type': 'COPY_ON_WRITE',
   'hoodie.datasource.write.operation': 'UPSERT', 
   'hoodie.datasource.write.row.writer.enable': False}
   
   
   Issue Description:
   
   I am trying to insert the data into target table along with performing archiving and cleaning as I currently have more commits than defined in the config. I test this same process with several variations of the write configuration to determine if the write config was causing the issue. These variations include enabling/disabling the row writer, the metadata table, and eventually worked my way down to removing all non required write configuration options. However, this did not seem to resolve the issue. During run I am getting following exception:
   
   An error occurred while calling o286.save.
   : org.apache.hudi.exception.HoodieCommitException: Failed to archive commits
   	at org.apache.hudi.table.HoodieTimelineArchiveLog.archive(HoodieTimelineArchiveLog.java:318)
   	at org.apache.hudi.table.HoodieTimelineArchiveLog.archiveIfRequired(HoodieTimelineArchiveLog.java:128)
   	at org.apache.hudi.client.AbstractHoodieWriteClient.postCommit(AbstractHoodieWriteClient.java:439)
   	at org.apache.hudi.client.AbstractHoodieWriteClient.commitStats(AbstractHoodieWriteClient.java:191)
   	at org.apache.hudi.client.SparkRDDWriteClient.commit(SparkRDDWriteClient.java:124)
   	at org.apache.hudi.HoodieSparkSqlWriter$.commitAndPerformPostOperations(HoodieSparkSqlWriter.scala:614)
   	at org.apache.hudi.HoodieSparkSqlWriter$.write(HoodieSparkSqlWriter.scala:272)
   	at org.apache.hudi.DefaultSource.createRelation(DefaultSource.scala:164)
   	at org.apache.spark.sql.execution.datasources.SaveIntoDataSourceCommand.run(SaveIntoDataSourceCommand.scala:45)
   	at org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:70)
   	at org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult(commands.scala:68)
   	at org.apache.spark.sql.execution.command.ExecutedCommandExec.doExecute(commands.scala:86)
   	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:131)
   	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:127)
   	at org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:156)
   	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
   	at org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:152)
   	at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:127)
   	at org.apache.spark.sql.execution.QueryExecution.toRdd$lzycompute(QueryExecution.scala:80)
   	at org.apache.spark.sql.execution.QueryExecution.toRdd(QueryExecution.scala:80)
   	at org.apache.spark.sql.DataFrameWriter$$anonfun$runCommand$1.apply(DataFrameWriter.scala:676)
   	at org.apache.spark.sql.DataFrameWriter$$anonfun$runCommand$1.apply(DataFrameWriter.scala:676)
   	at org.apache.spark.sql.execution.SQLExecution$$anonfun$withNewExecutionId$1.apply(SQLExecution.scala:78)
   	at org.apache.spark.sql.execution.SQLExecution$.withSQLConfPropagated(SQLExecution.scala:125)
   	at org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:73)
   	at org.apache.spark.sql.DataFrameWriter.runCommand(DataFrameWriter.scala:676)
   	at org.apache.spark.sql.DataFrameWriter.saveToV1Source(DataFrameWriter.scala:285)
   	at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:271)
   	at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:229)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
   	at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
   	at py4j.Gateway.invoke(Gateway.java:282)
   	at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
   	at py4j.commands.CallCommand.execute(CallCommand.java:79)
   	at py4j.GatewayConnection.run(GatewayConnection.java:238)
   	at java.lang.Thread.run(Thread.java:748)
   Caused by: java.lang.NullPointerException: null of string of map of union in field extraMetadata of org.apache.hudi.avro.model.HoodieCommitMetadata of union in field hoodieCommitMetadata of org.apache.hudi.avro.model.HoodieArchivedMetaEntry
   	at org.apache.avro.generic.GenericDatumWriter.npe(GenericDatumWriter.java:145)
   	at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:139)
   	at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:75)
   	at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:62)
   	at org.apache.hudi.common.table.log.block.HoodieAvroDataBlock.serializeRecords(HoodieAvroDataBlock.java:106)
   	at org.apache.hudi.common.table.log.block.HoodieDataBlock.getContentBytes(HoodieDataBlock.java:97)
   	at org.apache.hudi.common.table.log.HoodieLogFormatWriter.appendBlocks(HoodieLogFormatWriter.java:164)
   	at org.apache.hudi.common.table.log.HoodieLogFormatWriter.appendBlock(HoodieLogFormatWriter.java:142)
   	at org.apache.hudi.table.HoodieTimelineArchiveLog.writeToFile(HoodieTimelineArchiveLog.java:334)
   	at org.apache.hudi.table.HoodieTimelineArchiveLog.archive(HoodieTimelineArchiveLog.java:307)
   	... 39 more
   Caused by: java.lang.NullPointerException
   	at org.apache.avro.io.Encoder.writeString(Encoder.java:121)
   	at org.apache.avro.generic.GenericDatumWriter.writeString(GenericDatumWriter.java:267)
   	at org.apache.avro.generic.GenericDatumWriter.writeString(GenericDatumWriter.java:262)
   	at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:128)
   	at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:75)
   	at org.apache.avro.generic.GenericDatumWriter.writeMap(GenericDatumWriter.java:234)
   	at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:121)
   	at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:75)
   	at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:125)
   	at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:75)
   	at org.apache.avro.generic.GenericDatumWriter.writeField(GenericDatumWriter.java:166)
   	at org.apache.avro.generic.GenericDatumWriter.writeRecord(GenericDatumWriter.java:156)
   	at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:118)
   	at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:75)
   	at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:125)
   	at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:75)
   	at org.apache.avro.generic.GenericDatumWriter.writeField(GenericDatumWriter.java:166)
   	at org.apache.avro.generic.GenericDatumWriter.writeRecord(GenericDatumWriter.java:156)
   	at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:118)
   	... 47 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] nsivabalan commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1020043453


   @andykrk : Can you confirm you posted the contents of commit metadata of the exact commit for which the archival failed. bcoz, from the stacktrace, it says "NullPointerException: null of string of map of union in field extraMetadata of". So, I expected some null value entries in extraMetadata. But I do see an entry for schema and no other additional entries. 
   
   
   Can you inspect the extrametadata for few of your earliest commits (completed meta files) in active timeline and let us know if they are looking good. 
   
   


-- 
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 issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1039438405






-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1015375826


   hi XuQianJin-Stars, please let me know what if there is anything specific that  can provide to help with this further


-- 
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 issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1039438405


   sure. I will hold on to reproduce until I hear from you. wrt metadata table, actually I had a suspicion if enabling it could cause issues. we fixed lot of bugs around metadata table in 0.10.0 and few more are going into 0.11.0 as well. So, would recommend not to enable it. sorry about that.
   


-- 
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 issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1047411843


   with 0.9.0, if you disable metadata, may I know if you are still seeing NPE w/ archival. 


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1047896321


   I have just checked with hudi 0.9.0 and metadata disabled. Please find the error log attached
   [30_metadata_disabled_hudi_0_9_0.txt](https://github.com/apache/hudi/files/8117785/30_metadata_disabled_hudi_0_9_0.txt)
   .


-- 
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] andykrk edited a comment on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk edited a comment on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1024091806


   @nsivabalan I was able to reproduce the issue on the other table. Let me add some additional information to it that may help.
   We start with our current table that was created with hudi 0.7.0. Since the beginning it had following settings applied:
   'hoodie.keep.min.commits': 999,
   'hoodie.keep.max.commits': 1000,
   'hoodie.cleaner.commits.retained': 998,
   therefore in our case there was no archival happening for that table. Currently since we want to enable archival process we are modifying the parameters to:
   'hoodie.keep.min.commits': 29,
   'hoodie.keep.max.commits': 30,
   'hoodie.cleaner.commits.retained': 28,
   however for my testing I run the first processing with hudi 0.9.0 and:
   'hoodie.keep.min.commits': 999,
   'hoodie.keep.max.commits': 1000,
   'hoodie.cleaner.commits.retained': 998,
   to make sure that if anything has to upgrade or update in the background it happens before we run with archival option. This run works fine and completes successfully. Then the settings go to 29, 30, 28 and I run again (possibly with no data change as I do this right away). That's when I see the errors presented here. Wanted to add this here as I am not sure if the facts that table was created with older hudi version and that the run without archiving works fine may matter for us.


-- 
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] XuQianJin-Stars commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
XuQianJin-Stars commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1019021433


   @andykrk I did not reproduce the problem you described under hudi 0.9 and spark 2.4.7


-- 
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] xushiyan commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
xushiyan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1015077050


   @XuQianJin-Stars can you help looking into this please? Thanks.


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1055478036


   I have done the same with the other table and it was successful. Let me check the details of the successful one.


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1057984997


   Please find the output of desc hudi_table for the table the archive was successful:
   
   +--------------------------+--------------+-------+
   |col_name                  |data_type     |comment|
   +--------------------------+--------------+-------+
   |_hoodie_commit_time       |string        |null   |
   |_hoodie_commit_seqno      |string        |null   |
   |_hoodie_record_key        |string        |null   |
   |_hoodie_partition_path    |string        |null   |
   |_hoodie_file_name         |string        |null   |
   |field1                    |string        |null   |
   |field2                    |decimal(38,18)|null   |
   |field3                    |string        |null   |
   |field4                    |string        |null   |
   |field5                    |decimal(38,18)|null   |
   |field6                    |string        |null   |
   |field7                    |decimal(38,18)|null   |
   |field8                    |decimal(38,18)|null   |
   |field9                    |decimal(38,18)|null   |
   |field10                   |bigint        |null   |
   |field11                   |bigint        |null   |
   |field12                   |bigint        |null   |
   |field13                   |bigint        |null   |
   |field14                   |bigint        |null   |
   |field15                   |decimal(38,18)|null   |
   |field16                   |decimal(38,18)|null   |
   |field17                   |decimal(38,18)|null   |
   |field18                   |string        |null   |
   |field19                   |decimal(38,18)|null   |
   |field20                   |string        |null   |
   |field21                   |bigint        |null   |
   |field22                   |string        |null   |
   |field23                   |string        |null   |
   |field24                   |decimal(38,18)|null   |
   |field25                   |decimal(38,18)|null   |
   |field26                   |decimal(38,18)|null   |
   |field27                   |decimal(38,18)|null   |
   |field28                   |decimal(38,18)|null   |
   |field29                   |decimal(38,18)|null   |
   |field30                   |decimal(38,18)|null   |
   |field31                   |string        |null   |
   |field32                   |string        |null   |
   |field33                   |string        |null   |
   |field34                   |string        |null   |
   |field35                   |decimal(38,18)|null   |
   |field36                   |decimal(38,18)|null   |
   |field37                   |decimal(38,18)|null   |
   |field38                   |decimal(38,18)|null   |
   |field39                   |decimal(38,18)|null   |
   |field40                   |decimal(38,18)|null   |
   |field41                   |decimal(38,18)|null   |
   |field42                   |decimal(38,18)|null   |
   |field43                   |string        |null   |
   |field44                   |string        |null   |
   |field45                   |string        |null   |
   |field46                   |string        |null   |
   |field47                   |string        |null   |
   |field48                   |string        |null   |
   |field49                   |string        |null   |
   |field50                   |string        |null   |
   |field51                   |string        |null   |
   |field52                   |string        |null   |
   |field53                   |string        |null   |
   |field54                   |string        |null   |
   |field55                   |string        |null   |
   |field56                   |string        |null   |
   |field57                   |string        |null   |
   |field58                   |decimal(38,18)|null   |
   |field59                   |string        |null   |
   |field60                   |string        |null   |
   |field61                   |string        |null   |
   |field62                   |string        |null   |
   |field63                   |string        |null   |
   |field64                   |string        |null   |
   |field65                   |decimal(38,18)|null   |
   |field66                   |string        |null   |
   |field67                   |decimal(38,18)|null   |
   |field68                   |string        |null   |
   |field69                   |string        |null   |
   |field70                   |string        |null   |
   |field71                   |string        |null   |
   |field72                   |string        |null   |
   |field73                   |decimal(38,18)|null   |
   |field74                   |string        |null   |
   |field75                   |string        |null   |
   |field76                   |decimal(38,18)|null   |
   |field77                   |string        |null   |
   |field78                   |string        |null   |
   |field79                   |string        |null   |
   |field80                   |string        |null   |
   |field81                   |string        |null   |
   |field82                   |string        |null   |
   |field83                   |string        |null   |
   |field84                   |string        |null   |
   |field85                   |string        |null   |
   |field86                   |string        |null   |
   |field87                   |decimal(38,18)|null   |
   |field88                   |decimal(38,18)|null   |
   |field89                   |bigint        |null   |
   |field90                   |string        |null   |
   |field91                   |bigint        |null   |
   |field92                   |decimal(38,18)|null   |
   |field93                   |decimal(38,18)|null   |
   |field94                   |string        |null   |
   |field95                   |string        |null   |
   |field96                   |string        |null   |
   |field97                   |string        |null   |
   |field98                   |bigint        |null   |
   |field99                   |decimal(38,18)|null   |
   |field100                  |string        |null   |
   |field101                  |string        |null   |
   |field102                  |string        |null   |
   |field103                  |string        |null   |
   |field104                  |string        |null   |
   |field105                  |string        |null   |
   |field106                  |string        |null   |
   |field107                  |string        |null   |
   |field108                  |string        |null   |
   |field109                  |string        |null   |
   |field110                  |string        |null   |
   |field111                  |string        |null   |
   |field112                  |string        |null   |
   |field113                  |string        |null   |
   |field114                  |decimal(38,18)|null   |
   |field115                  |decimal(38,18)|null   |
   |field116                  |decimal(38,18)|null   |
   |field117                  |decimal(38,18)|null   |
   |field118                  |string        |null   |
   |field119                  |string        |null   |
   |field120                  |string        |null   |
   |field121                  |string        |null   |
   |field122                  |decimal(38,18)|null   |
   |field123                  |decimal(38,18)|null   |
   |field124                  |string        |null   |
   |field125                  |string        |null   |
   |field126                  |decimal(38,18)|null   |
   |field127                  |decimal(38,18)|null   |
   |field128                  |string        |null   |
   |field129                  |string        |null   |
   |field130                  |decimal(38,18)|null   |
   |field131                  |decimal(38,18)|null   |
   |field132                  |decimal(38,18)|null   |
   |field133                  |decimal(38,18)|null   |
   |field134                  |string        |null   |
   |field135                  |decimal(38,18)|null   |
   |field136                  |string        |null   |
   |field137                  |decimal(38,18)|null   |
   |field138                  |string        |null   |
   |field139                  |string        |null   |
   |field140                  |string        |null   |
   |field141                  |string        |null   |
   |field142                  |decimal(38,18)|null   |
   |field143                  |string        |null   |
   |field144                  |string        |null   |
   |field145                  |string        |null   |
   |field146                  |string        |null   |
   |field147                  |string        |null   |
   |field148                  |int           |null   |
   |field149                  |string        |null   |
   |field150                  |timestamp     |null   |
   |field151                  |string        |null   |
   +--------------------------+--------------+-------+
   
   and here for the current we have the problem:
   
   +----------------------+--------------+-------+
   |col_name              |data_type     |comment|
   +----------------------+--------------+-------+
   |_hoodie_commit_time   |string        |null   |
   |_hoodie_commit_seqno |string        |null   |
   |_hoodie_record_key       |string        |null   |
   |_hoodie_partition_path  |string        |null   |
   |_hoodie_file_name         |string        |null   |
   |col56                 |string        |null   |
   |col57                 |string        |null   |
   |col58                 |string        |null   |
   |col59                 |string        |null   |
   |col60                 |string        |null   |
   |col61                 |string        |null   |
   |col62                 |string        |null   |
   |col63                 |string        |null   |
   |col64                 |string        |null   |
   |col65                 |string        |null   |
   |col66                 |string        |null   |
   |col67                 |string        |null   |
   |col68                 |string        |null   |
   |col69                 |string        |null   |
   |col70                 |string        |null   |
   |col71                 |string        |null   |
   |col72                 |decimal(38,18)|null   |
   |col73                 |string        |null   |
   |col74                 |string        |null   |
   |col75                 |decimal(38,18)|null   |
   |col76                 |string        |null   |
   |col77                 |decimal(38,18)|null   |
   |col78                 |string        |null   |
   |col79                 |string        |null   |
   |col80                 |string        |null   |
   |col81                 |string        |null   |
   |col82                 |string        |null   |
   |col83                 |string        |null   |
   |col84                 |string        |null   |
   |col85                 |string        |null   |
   |col86                 |string        |null   |
   |col87                 |string        |null   |
   |col88                 |string        |null   |
   |col89                 |string        |null   |
   |col90                 |string        |null   |
   |col91                 |string        |null   |
   |col92                 |string        |null   |
   |col93                 |string        |null   |
   |col94                 |string        |null   |
   |col95                 |string        |null   |
   |col96                 |string        |null   |
   |col97                 |string        |null   |
   |col98                 |string        |null   |
   |col1                   |string        |null   |
   |col99                 |timestamp     |null   |
   +----------------------+--------------+-------+
   
   Strangely it looks like there is more column types in the successful one than in the one with problems.
   


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1019951496


   @nsivabalan Yes, the issue was also visible for me with 0.10.0. Thanks for the suggestion we will try to go with it.
   
   @XuQianJin-Stars Is there anything else I can provide to help with the investigation/reproduction attempts?


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1036096714


   Hello,
   
   I will try to describe the procedure with more details. It's very close to what you have described though. Please hold on with reproduction attempt and let me try again now since we are on 0.9.0 in production environment but without archival (1000 commits needed). I see that change from 0.7.0 to 0.9.0 without archiving is not causing any problems since it took place. I will try with enabled "hoodie.metadata.enable" 
   
   


-- 
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 issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1030855832


   so if I understand correctly, this is what you are doing.
   created a table w/ 0.7.0 with very high archival configs. and so archival did not even kick in, bcoz, you did not have 1000 commits in your table at all. 
   and now,  you tried upgrading to 0.9.0 with lower archival configs. i.e. 29,30 ish. and now you are facing the issue. 
   
   As I mentioned earlier, I could not repro this with 0.10.0. I will once again give it a try w/ table created in 0.7.0 and see what happens. Essentially I will have to retry the upgrade to mimic your use-case. 
   In the mean time, if you have tables created directly w/ 0.9.0 or 0.10.0, do you encounter any issues w/ archival. 
   And can you tell me if you have enabled "hoodie.metadata.enable" in any of your tables. 
   
   


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1040046911


   @nsivabalan in the meantime we have this table running with 0.9.0 in production as we are starting to use 0.9.0 wherever it's possible but still with very high archival setting (no actual archiving). Taking this into consideration I cloned production data and ran with:
   'hoodie.keep.min.commits': 29,
   'hoodie.keep.max.commits': 30,
   'hoodie.cleaner.commits.retained': 28,
   'hoodie.metadata.enable': True
   Attaching log from this failure but it looks very similar to the previous one.
   Please let me know if we want me to run with any other specific settings or provide additional logs.
   [Archival_with_metadata_enabled.txt](https://github.com/apache/hudi/files/8067668/Archival_with_metadata_enabled.txt)
   
   


-- 
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 issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1082283943


   @andykrk : do you have any updates for us. 


-- 
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 issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1073073656


   I am running out to ideas here. since this is an empty commit. you can delete the offending commit files (there should be 3 commits for each write, instanttime.commit.requested, instantTime.commit.inflight and instantTime.commit). pipeline should be able to proceed w/o any issues. 
   Please take a snapshot of the table before you try it out. and let us know how it goes. 
   


-- 
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 issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1013354693


   Can you post the contents of instant.commit meta file in /.hoodie/ for which this error is thrown. Especially interested in whats set for extraMetadata. for eg, this is in my local dataset.
   ```
    "extraMetadata" : {
       "schema" : "{\"type\":\"record\",\"name\":\"hudi_trips_cow_record\",\"namespace\":\"hoodie.hudi_trips_cow\",\"fields\":[{\"name\":\"begin_lat\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"begin_lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"driver\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"end_lat\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"end_lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"fare\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"partitionpath\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"rider\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"ts\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"uuid\",\"type\":[\"null\",\"string\"],\"default\":null}]}"
     },
   ```


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1016347338


   hello @XuQianJin-Stars,
   
   please find output of desc command:
   
   ```
   +----------------------+--------------+-------+
   |col_name              |data_type     |comment|
   +----------------------+--------------+-------+
   |_hoodie_commit_time   |string        |null   |
   |_hoodie_commit_seqno |string        |null   |
   |_hoodie_record_key       |string        |null   |
   |_hoodie_partition_path  |string        |null   |
   |_hoodie_file_name         |string        |null   |
   |col56                 |string        |null   |
   |col57                 |string        |null   |
   |col58                 |string        |null   |
   |col59                 |string        |null   |
   |col60                 |string        |null   |
   |col61                 |string        |null   |
   |col62                 |string        |null   |
   |col63                 |string        |null   |
   |col64                 |string        |null   |
   |col65                 |string        |null   |
   |col66                 |string        |null   |
   |col67                 |string        |null   |
   |col68                 |string        |null   |
   |col69                 |string        |null   |
   |col70                 |string        |null   |
   |col71                 |string        |null   |
   |col72                 |decimal(38,18)|null   |
   |col73                 |string        |null   |
   |col74                 |string        |null   |
   |col75                 |decimal(38,18)|null   |
   |col76                 |string        |null   |
   |col77                 |decimal(38,18)|null   |
   |col78                 |string        |null   |
   |col79                 |string        |null   |
   |col80                 |string        |null   |
   |col81                 |string        |null   |
   |col82                 |string        |null   |
   |col83                 |string        |null   |
   |col84                 |string        |null   |
   |col85                 |string        |null   |
   |col86                 |string        |null   |
   |col87                 |string        |null   |
   |col88                 |string        |null   |
   |col89                 |string        |null   |
   |col90                 |string        |null   |
   |col91                 |string        |null   |
   |col92                 |string        |null   |
   |col93                 |string        |null   |
   |col94                 |string        |null   |
   |col95                 |string        |null   |
   |col96                 |string        |null   |
   |col97                 |string        |null   |
   |col98                 |string        |null   |
   |col1                   |string        |null   |
   |col99                 |timestamp     |null   |
   +----------------------+--------------+-------+
   ```
   
   And here's the output from hoodie.properties:
   
   ```
   #Updated at 1642166009566
   #Fri Jan 14 13:13:29 UTC 2022
   hoodie.table.partition.fields=partitionpath
   hoodie.table.type=COPY_ON_WRITE
   hoodie.archivelog.folder=archived
   hoodie.timeline.layout.version=1
   hoodie.table.version=3
   hoodie.table.recordkey.fields=col1
   hoodie.table.base.file.format=PARQUET
   hoodie.datasource.write.partitionpath.urlencode=false
   hoodie.table.keygenerator.class=org.apache.hudi.keygen.NonpartitionedKeyGenerator
   hoodie.table.name=targetschema.target_table
   hoodie.datasource.write.hive_style_partitioning=false
   ```
   
   Just a note:
   I see that the table.version is 3. I have tried my testing both with hudi 0.9.0 and hudi 0.10.0


-- 
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 issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1039439027


   also, you could also try to fix the archival configs with 0.7.0 only and see whats happening. just to rule out whether it happens even w/o upgrade. 
   


-- 
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] XuQianJin-Stars commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
XuQianJin-Stars commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1015086623


   hi @andykrk Can you provide further steps to help me reproduce this issue?


-- 
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] XuQianJin-Stars edited a comment on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
XuQianJin-Stars edited a comment on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1016230161


   hi @andykrk Take a look at your table information, use the `desc` command in spark sql, eg: 
   spark-sql> desc test_hudi_table;
   ```54810 [main] INFO  org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator  - Code generated in 12.172538 ms
   _hoodie_commit_time	string	NULL
   _hoodie_commit_seqno	string	NULL
   _hoodie_record_key	string	NULL
   _hoodie_partition_path	string	NULL
   _hoodie_file_name	string	NULL
   id	int	NULL
   name	string	NULL
   price	double	NULL
   ts	bigint	NULL
   dt	string	NULL
   # Partition Information		
   # col_name	data_type	comment
   dt	string	NULL
   Time taken: 0.071 seconds, Fetched 13 row(s)
   ```
   If possible, the information in this file `hoodie.properties` will also provided.


-- 
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 issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1018573357


   are you also facing this w/ 0.10.0 as well? interesting. I remember we made some fix towards NPE with commit metadata parsing during archival, looks like this is different. 
   btw, while we triage the root cause, a bit hacky suggestion to get past the issue. From the commit metadata, I see this is an empty commit. No files were written as part of this commit. if its a PoC dataset, you can try deleting the commit meta file from timeline and restart your pipeline. (There should be 3 files in your timeline per commit (instant.commit.requested, instant.commit.inflight and instant.commit)
   


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1021132470


   @nsivabalan Just additional information. I have the data in the commit that is created prior to the two I have posted here. The thing is that was the one created with our old archival settings:
   'hoodie.keep.min.commits': 999,
   'hoodie.keep.max.commits': 1000,
   'hoodie.cleaner.commits.retained': 998,
   so in our case without the actual archival that we want to get. Once I'm trying to process with those settings:
   'hoodie.keep.min.commits': 29,
   'hoodie.keep.max.commits': 30,
   'hoodie.cleaner.commits.retained': 28,
   we are starting to observe the issue.
   


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1020263489


   @nsivabalan I just rerun my load with the same data last time (we made it static) and the only commit that was added in a directory today is:
   ![image](https://user-images.githubusercontent.com/24304947/150819406-7ff6b9af-e144-442d-8312-c31b88f86113.png)
   
   The content of 20220124144848903.commit is:
   
   ```
   {
     "partitionToWriteStats" : { },
     "compacted" : false,
     "extraMetadata" : {
       "schema" : "{\"type\":\"record\",\"name\":\"targetschema__target_table_record\",\"namespace\":\"hoodie.targetschema__target_table\",\"fields\":[{\"name\":\"col56\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col57\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col58\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col59\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col60\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col61\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col62\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col63\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col64\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col65\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col66\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col67\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col68\"
 ,\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col69\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col70\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col71\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col72\",\"type\":[\"null\",{\"type\":\"fixed\",\"name\":\"fixed\",\"namespace\":\"hoodie.targetschema__target_table.targetschema__target_table_record.col72\",\"size\":16,\"logicalType\":\"decimal\",\"precision\":38,\"scale\":18}],\"default\":null},{\"name\":\"col73\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col74\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col75\",\"type\":[\"null\",{\"type\":\"fixed\",\"name\":\"fixed\",\"namespace\":\"hoodie.targetschema__target_table.targetschema__target_table_record.col75\",\"size\":16,\"logicalType\":\"decimal\",\"precision\":38,\"scale\":18}],\"default\":null},{\"name\":\"col76\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"c
 ol77\",\"type\":[\"null\",{\"type\":\"fixed\",\"name\":\"fixed\",\"namespace\":\"hoodie.targetschema__target_table.targetschema__target_table_record.col77\",\"size\":16,\"logicalType\":\"decimal\",\"precision\":38,\"scale\":18}],\"default\":null},{\"name\":\"col78\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col79\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col80\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col81\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col82\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col83\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col84\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col85\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col86\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col87\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col88\",\"type\":[\"null\",\"string\"],\"default
 \":null},{\"name\":\"col89\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col90\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col91\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col92\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col93\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col94\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col95\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col96\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col97\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col98\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col99\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-micros\"}}]}"
     },
     "operationType" : "UPSERT",
     "writePartitionPaths" : [ ],
     "totalRecordsDeleted" : 0,
     "totalLogRecordsCompacted" : 0,
     "totalLogFilesCompacted" : 0,
     "totalCompactedRecordsUpdated" : 0,
     "totalLogFilesSize" : 0,
     "totalScanTime" : 0,
     "totalCreateTime" : 0,
     "totalUpsertTime" : 0,
     "minAndMaxEventTime" : {
       "Optional.empty" : {
         "val" : null,
         "present" : false
       }
     },
     "fileIdAndRelativePaths" : { }
   }
   ```
   
   Please let me know if there is anything else we need.


-- 
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 issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1015351403


   we have a related [issue](https://github.com/apache/hudi/pull/2653) reported earlier. Might help @XuQianJin-Stars triage it. 


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1014469030


   Please find the content of the .commit file below:
   
   {
     "partitionToWriteStats" : { },
     "compacted" : false,
     "extraMetadata" : {
       "schema" : "{\"type\":\"record\",\"name\":\"targetschema__target_table_record\",\"namespace\":\"hoodie.targetschema__target_table\",\"fields\":[{\"name\":\"col56\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col57\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col58\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col59\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col60\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col61\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col62\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col63\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col64\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col65\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col66\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col67\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col68\"
 ,\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col69\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col70\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col71\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col72\",\"type\":[\"null\",{\"type\":\"fixed\",\"name\":\"fixed\",\"namespace\":\"hoodie.targetschema__target_table.targetschema__target_table_record.col72\",\"size\":16,\"logicalType\":\"decimal\",\"precision\":38,\"scale\":18}],\"default\":null},{\"name\":\"col73\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col74\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col75\",\"type\":[\"null\",{\"type\":\"fixed\",\"name\":\"fixed\",\"namespace\":\"hoodie.targetschema__target_table.targetschema__target_table_record.col75\",\"size\":16,\"logicalType\":\"decimal\",\"precision\":38,\"scale\":18}],\"default\":null},{\"name\":\"col76\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"c
 ol77\",\"type\":[\"null\",{\"type\":\"fixed\",\"name\":\"fixed\",\"namespace\":\"hoodie.targetschema__target_table.targetschema__target_table_record.col77\",\"size\":16,\"logicalType\":\"decimal\",\"precision\":38,\"scale\":18}],\"default\":null},{\"name\":\"col78\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col79\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col80\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col81\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col82\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col83\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col84\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col85\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col86\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col87\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col88\",\"type\":[\"null\",\"string\"],\"default
 \":null},{\"name\":\"col89\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col90\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col91\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col92\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col93\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col94\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col95\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col96\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col97\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col98\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"col99\",\"type\":{\"type\":\"long\",\"logicalType\":\"timestamp-micros\"}}]}"
     },
     "operationType" : "UPSERT",
     "writePartitionPaths" : [ ],
     "fileIdAndRelativePaths" : { },
     "totalRecordsDeleted" : 0,
     "totalLogRecordsCompacted" : 0,
     "totalLogFilesCompacted" : 0,
     "totalCompactedRecordsUpdated" : 0,
     "totalLogFilesSize" : 0,
     "totalScanTime" : 0,
     "totalCreateTime" : 0,
     "totalUpsertTime" : 0,
     "minAndMaxEventTime" : {
       "Optional.empty" : {
         "val" : null,
         "present" : false
       }
     }
   }


-- 
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] XuQianJin-Stars commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
XuQianJin-Stars commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1016230161


   hi @andykrk Take a look at your table information, use the `desc` command in spark sql, eg: 
   spark-sql> desc test_hudi_table;
   ```54810 [main] INFO  org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator  - Code generated in 12.172538 ms
   _hoodie_commit_time	string	NULL
   _hoodie_commit_seqno	string	NULL
   _hoodie_record_key	string	NULL
   _hoodie_partition_path	string	NULL
   _hoodie_file_name	string	NULL
   id	int	NULL
   name	string	NULL
   price	double	NULL
   ts	bigint	NULL
   dt	string	NULL
   # Partition Information		
   # col_name	data_type	comment
   dt	string	NULL
   Time taken: 0.071 seconds, Fetched 13 row(s)
   ```
   


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1021132470


   @nsivabalan Just additional information. I have the data in the commit that is created prior to the two I have posted here. The thing is that was the one created with our old archival settings:
   'hoodie.keep.min.commits': 999,
   'hoodie.keep.max.commits': 1000,
   'hoodie.cleaner.commits.retained': 998,
   so in our case without the actual archival that we want to get. Once I'm trying to process with those settings:
   'hoodie.keep.min.commits': 29,
   'hoodie.keep.max.commits': 30,
   'hoodie.cleaner.commits.retained': 28,
   we are starting to observe the issue.
   


-- 
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 edited a comment on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan edited a comment on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1021536416


   I could not reproduce w/ latest master. I added a dummy commit in my test dataset with almost exact content as the one you see. and archival is succeeding in my case. I also tested w/ 0.10.0 and it succeeds. could not reproduce your issue unfortunately. 
   
   this is the content of completed commit file that I hand curated and added to the timeline. 
   ```
   {
     "partitionToWriteStats" : { },
     "compacted" : false,
     "extraMetadata" : {
       "schema" : "{\"type\":\"record\",\"name\":\"hudi_trips_cow_record\",\"namespace\":\"hoodie.hudi_trips_cow\",\"fields\":[{\"name\":\"begin_lat\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"begin_lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"driver\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"end_lat\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"end_lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"fare\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"partitionpath\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"rider\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"ts\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"uuid\",\"type\":[\"null\",\"string\"],\"default\":null}]}"
     },
     "operationType" : "UPSERT",
     "writePartitionPaths" : [ ],
     "fileIdAndRelativePaths" : { },
     "totalRecordsDeleted" : 0,
     "totalLogRecordsCompacted" : 0,
     "totalLogFilesCompacted" : 0,
     "totalCompactedRecordsUpdated" : 0,
     "totalLogFilesSize" : 0,
     "totalScanTime" : 0,
     "totalCreateTime" : 0,
     "totalUpsertTime" : 423,
     "minAndMaxEventTime" : {
       "Optional.empty" : {
         "val" : null,
         "present" : false
       }
     }
   }
   ```
   
   I also added the requested and inflight meta file as well.
   
   excerpt from logs: 
   ```
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog: Converting [==>20220125101344200__commit__REQUESTED] to avro record for archiving 
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog:  Converted record {"hoodieCommitMetadata": {"partitionToWriteStats": {}, "extraMetadata": {"ROLLING_STAT": ""}, "version": null, "operationType": "UNKNOWN"}, "hoodieCleanMetadata": null, "hoodieCompactionMetadata": null, "hoodieRollbackMetadata": null, "hoodieSavePointMetadata": null, "commitTime": "20220125101344200", "actionType": "commit", "version": null, "hoodieCompactionPlan": null, "hoodieCleanerPlan": null, "actionState": "REQUESTED", "hoodieReplaceCommitMetadata": null, "hoodieRequestedReplaceMetadata": null, "HoodieInflightReplaceMetadata": null}
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog: Converting [==>20220125101344200__commit__INFLIGHT] to avro record for archiving 
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog:  Converted record {"hoodieCommitMetadata": {"partitionToWriteStats": {}, "extraMetadata": {"ROLLING_STAT": ""}, "version": null, "operationType": "UPSERT"}, "hoodieCleanMetadata": null, "hoodieCompactionMetadata": null, "hoodieRollbackMetadata": null, "hoodieSavePointMetadata": null, "commitTime": "20220125101344200", "actionType": "commit", "version": null, "hoodieCompactionPlan": null, "hoodieCleanerPlan": null, "actionState": "INFLIGHT", "hoodieReplaceCommitMetadata": null, "hoodieRequestedReplaceMetadata": null, "HoodieInflightReplaceMetadata": null}
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog: Converting [20220125101344200__commit__COMPLETED] to avro record for archiving 
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog:  Converted record {"hoodieCommitMetadata": {"partitionToWriteStats": {}, "extraMetadata": {"schema": "{\"type\":\"record\",\"name\":\"hudi_trips_cow_record\",\"namespace\":\"hoodie.hudi_trips_cow\",\"fields\":[{\"name\":\"begin_lat\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"begin_lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"driver\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"end_lat\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"end_lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"fare\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"partitionpath\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"rider\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"ts\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"uuid\",\"type\":[\"null\",\"string\"],\"default\":null}]}", "ROLLING_STAT": ""}, "versio
 n": null, "operationType": "UPSERT"}, "hoodieCleanMetadata": null, "hoodieCompactionMetadata": null, "hoodieRollbackMetadata": null, "hoodieSavePointMetadata": null, "commitTime": "20220125101344200", "actionType": "commit", "version": null, "hoodieCompactionPlan": null, "hoodieCleanerPlan": null, "actionState": "COMPLETED", "hoodieReplaceCommitMetadata": null, "hoodieRequestedReplaceMetadata": null, "HoodieInflightReplaceMetadata": null}
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog: Converting [==>20220125101344322__commit__REQUESTED] to avro record for archiving 
   ```
   


-- 
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 issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1021536416


   I could not reproduce w/ latest master. I added a dummy commit in my test dataset with almost exact content as the one you see. and archival is succeeds in my case. I also tested w/ 0.10.0 and it succeeds. could not reproduce your issue unfortunately. 
   
   this is the content of completed commit file that I hand curated and added to the timeline. 
   ```
   {
     "partitionToWriteStats" : { },
     "compacted" : false,
     "extraMetadata" : {
       "schema" : "{\"type\":\"record\",\"name\":\"hudi_trips_cow_record\",\"namespace\":\"hoodie.hudi_trips_cow\",\"fields\":[{\"name\":\"begin_lat\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"begin_lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"driver\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"end_lat\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"end_lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"fare\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"partitionpath\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"rider\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"ts\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"uuid\",\"type\":[\"null\",\"string\"],\"default\":null}]}"
     },
     "operationType" : "UPSERT",
     "writePartitionPaths" : [ ],
     "fileIdAndRelativePaths" : { },
     "totalRecordsDeleted" : 0,
     "totalLogRecordsCompacted" : 0,
     "totalLogFilesCompacted" : 0,
     "totalCompactedRecordsUpdated" : 0,
     "totalLogFilesSize" : 0,
     "totalScanTime" : 0,
     "totalCreateTime" : 0,
     "totalUpsertTime" : 423,
     "minAndMaxEventTime" : {
       "Optional.empty" : {
         "val" : null,
         "present" : false
       }
     }
   }
   ```
   
   I also added the requested and inflight meta file as well.
   
   excerpt from logs: 
   ```
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog: Converting [==>20220125101344200__commit__REQUESTED] to avro record for archiving 
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog:  Converted record {"hoodieCommitMetadata": {"partitionToWriteStats": {}, "extraMetadata": {"ROLLING_STAT": ""}, "version": null, "operationType": "UNKNOWN"}, "hoodieCleanMetadata": null, "hoodieCompactionMetadata": null, "hoodieRollbackMetadata": null, "hoodieSavePointMetadata": null, "commitTime": "20220125101344200", "actionType": "commit", "version": null, "hoodieCompactionPlan": null, "hoodieCleanerPlan": null, "actionState": "REQUESTED", "hoodieReplaceCommitMetadata": null, "hoodieRequestedReplaceMetadata": null, "HoodieInflightReplaceMetadata": null}
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog: Converting [==>20220125101344200__commit__INFLIGHT] to avro record for archiving 
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog:  Converted record {"hoodieCommitMetadata": {"partitionToWriteStats": {}, "extraMetadata": {"ROLLING_STAT": ""}, "version": null, "operationType": "UPSERT"}, "hoodieCleanMetadata": null, "hoodieCompactionMetadata": null, "hoodieRollbackMetadata": null, "hoodieSavePointMetadata": null, "commitTime": "20220125101344200", "actionType": "commit", "version": null, "hoodieCompactionPlan": null, "hoodieCleanerPlan": null, "actionState": "INFLIGHT", "hoodieReplaceCommitMetadata": null, "hoodieRequestedReplaceMetadata": null, "HoodieInflightReplaceMetadata": null}
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog: Converting [20220125101344200__commit__COMPLETED] to avro record for archiving 
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog:  Converted record {"hoodieCommitMetadata": {"partitionToWriteStats": {}, "extraMetadata": {"schema": "{\"type\":\"record\",\"name\":\"hudi_trips_cow_record\",\"namespace\":\"hoodie.hudi_trips_cow\",\"fields\":[{\"name\":\"begin_lat\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"begin_lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"driver\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"end_lat\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"end_lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"fare\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"partitionpath\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"rider\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"ts\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"uuid\",\"type\":[\"null\",\"string\"],\"default\":null}]}", "ROLLING_STAT": ""}, "versio
 n": null, "operationType": "UPSERT"}, "hoodieCleanMetadata": null, "hoodieCompactionMetadata": null, "hoodieRollbackMetadata": null, "hoodieSavePointMetadata": null, "commitTime": "20220125101344200", "actionType": "commit", "version": null, "hoodieCompactionPlan": null, "hoodieCleanerPlan": null, "actionState": "COMPLETED", "hoodieReplaceCommitMetadata": null, "hoodieRequestedReplaceMetadata": null, "HoodieInflightReplaceMetadata": null}
   22/01/25 13:47:00 WARN HoodieTimelineArchiveLog: Converting [==>20220125101344322__commit__REQUESTED] to avro record for archiving 
   ```
   


-- 
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 issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1054861378


   only suspicion I have is around the schema. thats the only diff between what I tried to reproduce and yours. 
   
   Do you see similar exception w/ other tables too. or just this table. If you don't see in other tables, can you check the schema of those tables if they have decimal logical fields 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] nsivabalan edited a comment on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
nsivabalan edited a comment on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1013354693


   Can you post the contents of instant.commit meta file in /.hoodie/ for which this error is thrown. Especially interested in whats set for extraMetadata. for eg, this is in my local dataset (/tmp/hudi_trips_cow/.hoodie/20220113110004701.commit)
   ```
    "extraMetadata" : {
       "schema" : "{\"type\":\"record\",\"name\":\"hudi_trips_cow_record\",\"namespace\":\"hoodie.hudi_trips_cow\",\"fields\":[{\"name\":\"begin_lat\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"begin_lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"driver\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"end_lat\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"end_lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"fare\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"partitionpath\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"rider\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"ts\",\"type\":[\"null\",\"long\"],\"default\":null},{\"name\":\"uuid\",\"type\":[\"null\",\"string\"],\"default\":null}]}"
     },
   ```


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1024091806


   @nsivabalan I was able to reproduce the issue on the other table. Let me add some additional information to it that may help.
   We start with our current table that was created with hudi 0.7.0. Since the beginning it had following settings apllied:
   'hoodie.keep.min.commits': 999,
   'hoodie.keep.max.commits': 1000,
   'hoodie.cleaner.commits.retained': 998,
   therefore in our case there was no archival happening for that table. Currently since we want to enable archival process we are modifying the parameters to:
   'hoodie.keep.min.commits': 29,
   'hoodie.keep.max.commits': 30,
   'hoodie.cleaner.commits.retained': 28,
   however for my testing I run the first processing with hudi 0.9.0 and:
   'hoodie.keep.min.commits': 999,
   'hoodie.keep.max.commits': 1000,
   'hoodie.cleaner.commits.retained': 998,
   to make sure that if anything has to upgrade or update in the background it happens before we run with archival option. This run works fine and completes successfully. Then the settings go to 29, 30, 28 and I run again (possibly with no data change as I do this right away). That's when I see the errors presented here. Wanted to add this here as I am not sure if the facts that table was created with older hudi version and that the run without archiving works fine may matter for us.


-- 
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] andykrk commented on issue #4604: [SUPPORT] Archive functionality fails

Posted by GitBox <gi...@apache.org>.
andykrk commented on issue #4604:
URL: https://github.com/apache/hudi/issues/4604#issuecomment-1040046911


   @nsivabalan in the meantime we have this table running with 0.9.0 in production as we are starting to use 0.9.0 wherever it's possible but still with very high archival setting (no actual archiving). Taking this into consideration I cloned production data and ran with:
   'hoodie.keep.min.commits': 29,
   'hoodie.keep.max.commits': 30,
   'hoodie.cleaner.commits.retained': 28,
   'hoodie.metadata.enable': True
   Attaching log from this failure but it looks very similar to the previous one.
   Please let me know if we want me to run with any other specific settings or provide additional logs.
   [Archival_with_metadata_enabled.txt](https://github.com/apache/hudi/files/8067668/Archival_with_metadata_enabled.txt)
   
   


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