LinMingQiang opened a new issue, #5886:
URL: https://github.com/apache/hudi/issues/5886
**When debugging, it is found that the next commit will throw an exception
after the clean is completed**
I found that `HoodieTableFileSystemView.partitionToFileGroupsMap` lost the
last `instant commit` fileGoup infomation.
(I execute `hoodieTable.getHoodieView().reset()` after Throw Exception,and
its working after retry `getLatestBaseFile`)
hudi table config:
```
"'table.type' = 'COPY_ON_WRITE',\n" +
"'hoodie.parquet.small.file.limit' = '20', \n" +
"'write.operation' = 'insert', \n" +
"'write.insert.cluster' = 'true', \n" +
"'hoodie.datasource.write.hive_style_partitioning' =
'true',\n" +
"'write.task.max.size' = '4096', \n" +
"'write.merge.max_memory'= '2048',\n" +
"'write.precombine' = 'true',\n" +
"'write.tasks' = '1',\n" +
"'write.bucket_assign.tasks' = '1',\n" +
"'hive_sync.skip_ro_suffix' = 'true',\n" +
"'write.ignore.failed' = 'true',\n" +
"'clean.async.enabled' = 'true',\n" +
"'clean.retain_commits' = '6' \n" +
```
```
The determining factor is
'hoodie.parquet.small.file.limit' = '20' -- Trigger new file generation
and
'clean.async.enabled' = 'true' -- Trigger async clean
'clean.retain_commits' = '6'
```
**To Reproduce**
Steps to reproduce the behavior:
1.
2.
3.
4.
**Expected behavior**
A clear and concise description of what you expected to happen.
**Environment Description**
* Hudi version :
* Spark version :
* Hive version :
* Hadoop version :
* Storage (HDFS/S3/GCS..) :
* Running on Docker? (yes/no) :
**Additional context**
Add any other context about the problem here.
**Stacktrace**
```Add the stacktrace of the error.```
--
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]