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

   hudi 0.11.1
   spark 3.2.1
   
   I have several hudi tables with > 35k partitions. When running for first 
time hive sync, I randomly get the bellow error which says the partition 
already exists which is weird because the table didn't exist yet and the 
partition is not duplicated in the list.
   
   As a workaround I catched the error in the AWSGlueCatalogSyncClient, but 
before proposing a PR, I d'like to know if this is expected.
   
   ```
   2547338 [Driver] INFO  org.apache.spark.deploy.yarn.ApplicationMaster  - 
Final app status: FAILED, exitCode: 15, (reason: User class threw exception: 
java.lang.RuntimeException: org.apache.hudi.exception.HoodieException: Got 
runtime exception when hive syncing <table_name>
           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 
org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:737)
   Caused by: org.apache.hudi.hive.HoodieHiveSyncException: Failed to sync 
partitions for table <table_name>
           at 
org.apache.hudi.hive.HiveSyncTool.syncPartitions(HiveSyncTool.java:497)
           at 
org.apache.hudi.hive.HiveSyncTool.syncHoodieTable(HiveSyncTool.java:264)
           at org.apache.hudi.hive.HiveSyncTool.doSync(HiveSyncTool.java:172)
           at 
org.apache.hudi.hive.HiveSyncTool.syncHoodieTable(HiveSyncTool.java:159)
           ... 15 more
   Caused by: org.apache.hudi.aws.sync.HoodieGlueSyncException: Fail to add 
partitions to <db>.<table_name>
           at 
org.apache.hudi.aws.sync.AWSGlueCatalogSyncClient.addPartitionsToTable(AWSGlueCatalogSyncClient.java:145)
           at 
org.apache.hudi.hive.HiveSyncTool.syncPartitions(HiveSyncTool.java:479)
           ... 18 more
   Caused by: org.apache.hudi.aws.sync.HoodieGlueSyncException: Fail to add 
partitions to<db>.<table_name>
   with error(s): [{PartitionValues: [7, 2021-07-14, 13],ErrorDetail: 
{ErrorCode: AlreadyExistsException,ErrorMessage: Partition already exists.}}]
           at 
org.apache.hudi.aws.sync.AWSGlueCatalogSyncClient.addPartitionsToTable(AWSGlueCatalogSyncClient.java:140)
           ... 19 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: [email protected]

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

Reply via email to