Re: [I] [SUPPORT] Hudi fails ACID verification test [hudi]

2024-05-17 Thread via GitHub


ad1happy2go commented on issue #11170:
URL: https://github.com/apache/hudi/issues/11170#issuecomment-2117238692

   Thanks @matthijseikelenboom for the update


-- 
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-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] [SUPPORT] Hudi fails ACID verification test [hudi]

2024-05-17 Thread via GitHub


matthijseikelenboom closed issue #11170: [SUPPORT] Hudi fails ACID verification 
test
URL: https://github.com/apache/hudi/issues/11170


-- 
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-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] [SUPPORT] Hudi fails ACID verification test [hudi]

2024-05-17 Thread via GitHub


matthijseikelenboom commented on issue #11170:
URL: https://github.com/apache/hudi/issues/11170#issuecomment-2117016086

   Tested and verified. Closing issues.
   
    More info
   Solution has been tested on:
   - Java 8 ✅
   - Java 11 ✅
   - Java 17 ❌ (As of this moment, Hudi doesn't support this version)


-- 
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-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] [SUPPORT] Hudi fails ACID verification test [hudi]

2024-05-16 Thread via GitHub


ad1happy2go commented on issue #11170:
URL: https://github.com/apache/hudi/issues/11170#issuecomment-2115400503

   @matthijseikelenboom I was able to successfully test. There were two issues 
- 
   1. InprocessLockProvider doesn't work for multiple writes. So use 
FileSystemBasedLockProvider in transactionWriter.java
   ```
   dataSet.write().format("hudi")
   .option("hoodie.table.name", tableName)
   .option("hoodie.datasource.write.recordkey.field", 
"primaryKeyValue")
   .option("hoodie.datasource.write.partitionpath.field", 
"partitionKeyValue")
   .option("hoodie.datasource.write.precombine.field", 
"dataValue")
   .option("hoodie.write.lock.provider", 
"org.apache.hudi.client.transaction.lock.FileSystemBasedLockProvider")
   .mode(SaveMode.Append)
   .save(tablePath);
   ```
   3. Along with refresh, to add partitions to mock repair also in 
ReaderThread. 
   ```
   session.sql("REFRESH TABLE " + fullyQualifiedTableName);
   session.sql("MSCK REPAIR TABLE" + fullyQualifiedTableName);
   ```


-- 
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-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] [SUPPORT] Hudi fails ACID verification test [hudi]

2024-05-16 Thread via GitHub


ad1happy2go commented on issue #11170:
URL: https://github.com/apache/hudi/issues/11170#issuecomment-2115401719

   @matthijseikelenboom Please let us know if it works for you also. 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-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] [SUPPORT] Hudi fails ACID verification test [hudi]

2024-05-16 Thread via GitHub


ad1happy2go commented on issue #11170:
URL: https://github.com/apache/hudi/issues/11170#issuecomment-2115007277

   @matthijseikelenboom I tried to run in my local but again seeing issues. We 
can connect once. If you are on Apache Hudi slack can you ping me "Aditya 
Goenka"


-- 
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-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] [SUPPORT] Hudi fails ACID verification test [hudi]

2024-05-09 Thread via GitHub


matthijseikelenboom commented on issue #11170:
URL: https://github.com/apache/hudi/issues/11170#issuecomment-2102747936

   @ad1happy2go I've pushed a new branch on the repo where the project is 
downgraded to Java 8. When running the test then, the writers don't seem to 
fail anymore, but it still fails the verification test.
   
   https://github.com/apache/hudi/assets/1364843/30384d79-6905-4c2e-96f0-e246d5589469";>
   


-- 
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-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] [SUPPORT] Hudi fails ACID verification test [hudi]

2024-05-09 Thread via GitHub


matthijseikelenboom commented on issue #11170:
URL: https://github.com/apache/hudi/issues/11170#issuecomment-2102603694

   Okay, yeah sure. The original test was written with Java 11, but I updated 
to 17 because I thought why not and Spark 3.4.2 supports it.
   
   Is it known that Hudi (Or Kryo) also doesn't work with Java 11 and is that 
why you suggest Java 8? 


-- 
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-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] [SUPPORT] Hudi fails ACID verification test [hudi]

2024-05-09 Thread via GitHub


ad1happy2go commented on issue #11170:
URL: https://github.com/apache/hudi/issues/11170#issuecomment-2102355732

   @matthijseikelenboom I noticed you are using JAVA 17 for the same. Hudi 
0.14.1 doesn't support JAVA 17 yet. The newer Hudi version will be able to 
support the same.
   
   Some reference to similar issue related to java 17 here - 
https://github.com/EsotericSoftware/kryo/issues/885
   
   Can you try with JAVA 8 once. 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-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] [SUPPORT] Hudi fails ACID verification test [hudi]

2024-05-08 Thread via GitHub


ad1happy2go commented on issue #11170:
URL: https://github.com/apache/hudi/issues/11170#issuecomment-2101987758

   @matthijseikelenboom Looks like some library conflicts are there in the 
project. Need to reproduce 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-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] [SUPPORT] Hudi fails ACID verification test [hudi]

2024-05-08 Thread via GitHub


matthijseikelenboom commented on issue #11170:
URL: https://github.com/apache/hudi/issues/11170#issuecomment-2100205976

   @ad1happy2go Ah yes, you're right. I seem to have forgot to add the 
hudi-defaults.conf file to this project. I've added it to my repository and ran 
the test again. It comes further along, but still breaks down.
   
   Stacktrace (Be warned, it's a big one):
   ```
   ERROR! : Failed to upsert for commit time 20240508114518478
   24/05/08 11:45:18 ERROR TransactionWriter: Exception in writer.
   java.lang.RuntimeException: org.apache.hudi.exception.HoodieUpsertException: 
Failed to upsert for commit time 20240508114518478
at 
org.example.writer.TransactionWriter.wrapOrRethrowException(TransactionWriter.java:192)
at 
org.example.writer.TransactionWriter.tryTransaction(TransactionWriter.java:184)
at 
org.example.writer.TransactionWriter.updateTransaction(TransactionWriter.java:143)
at 
org.example.writer.TransactionWriter.lambda$handleTransaction$0(TransactionWriter.java:89)
at 
org.example.writer.TransactionWriter.withRetryOnException(TransactionWriter.java:109)
at 
org.example.writer.TransactionWriter.handleTransaction(TransactionWriter.java:83)
at org.example.writer.TransactionWriter.run(TransactionWriter.java:70)
   Caused by: org.apache.hudi.exception.HoodieUpsertException: Failed to upsert 
for commit time 20240508114518478
at 
org.apache.hudi.table.action.commit.BaseWriteHelper.write(BaseWriteHelper.java:70)
at 
org.apache.hudi.table.action.commit.SparkUpsertCommitActionExecutor.execute(SparkUpsertCommitActionExecutor.java:44)
at 
org.apache.hudi.table.HoodieSparkCopyOnWriteTable.upsert(HoodieSparkCopyOnWriteTable.java:114)
at 
org.apache.hudi.table.HoodieSparkCopyOnWriteTable.upsert(HoodieSparkCopyOnWriteTable.java:103)
at 
org.apache.hudi.client.SparkRDDWriteClient.upsert(SparkRDDWriteClient.java:142)
at 
org.apache.hudi.DataSourceUtils.doWriteOperation(DataSourceUtils.java:224)
at 
org.apache.hudi.HoodieSparkSqlWriterInternal.liftedTree1$1(HoodieSparkSqlWriter.scala:504)
at 
org.apache.hudi.HoodieSparkSqlWriterInternal.writeInternal(HoodieSparkSqlWriter.scala:502)
at 
org.apache.hudi.HoodieSparkSqlWriterInternal.write(HoodieSparkSqlWriter.scala:204)
at 
org.apache.hudi.HoodieSparkSqlWriter$.write(HoodieSparkSqlWriter.scala:121)
at 
org.apache.spark.sql.hudi.command.MergeIntoHoodieTableCommand.executeUpsert(MergeIntoHoodieTableCommand.scala:439)
at 
org.apache.spark.sql.hudi.command.MergeIntoHoodieTableCommand.run(MergeIntoHoodieTableCommand.scala:282)
at 
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:75)
at 
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult(commands.scala:73)
at 
org.apache.spark.sql.execution.command.ExecutedCommandExec.executeCollect(commands.scala:84)
at 
org.apache.spark.sql.execution.QueryExecution$$anonfun$eagerlyExecuteCommands$1.$anonfun$applyOrElse$1(QueryExecution.scala:98)
at 
org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$6(SQLExecution.scala:118)
at 
org.apache.spark.sql.execution.SQLExecution$.withSQLConfPropagated(SQLExecution.scala:195)
at 
org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$1(SQLExecution.scala:103)
at org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:827)
at 
org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:65)
at 
org.apache.spark.sql.execution.QueryExecution$$anonfun$eagerlyExecuteCommands$1.applyOrElse(QueryExecution.scala:98)
at 
org.apache.spark.sql.execution.QueryExecution$$anonfun$eagerlyExecuteCommands$1.applyOrElse(QueryExecution.scala:94)
at 
org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$transformDownWithPruning$1(TreeNode.scala:512)
at 
org.apache.spark.sql.catalyst.trees.CurrentOrigin$.withOrigin(TreeNode.scala:104)
at 
org.apache.spark.sql.catalyst.trees.TreeNode.transformDownWithPruning(TreeNode.scala:512)
at 
org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.org$apache$spark$sql$catalyst$plans$logical$AnalysisHelper$$super$transformDownWithPruning(LogicalPlan.scala:31)
at 
org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.transformDownWithPruning(AnalysisHelper.scala:267)
at 
org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.transformDownWithPruning$(AnalysisHelper.scala:263)
at 
org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.transformDownWithPruning(LogicalPlan.scala:31)
at 
org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.transformDownWithPruning(LogicalPlan.scala:31)
at 
org.apache.spark.sql.catalyst.trees.TreeNode.transformDown(TreeNode.scala:488)
at 
org.apache.spark.s

Re: [I] [SUPPORT] Hudi fails ACID verification test [hudi]

2024-05-08 Thread via GitHub


ad1happy2go commented on issue #11170:
URL: https://github.com/apache/hudi/issues/11170#issuecomment-2100011078

   @matthijseikelenboom I don't see any lock related configurations in your 
setup. I checked that you are using 2 parallel writers. So you may need to 
configure lock during write. Hudi follows OCC principal. 
   Check multi writer setup here - 
https://hudi.apache.org/docs/concurrency_control/#model-c-multi-writer
   
   Let me know in case I am missing anything on the same. Thanks a lot.


-- 
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-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org