Concurrency in Hudi Schema Evolution
Notes and Constraints
When creating a table, you need to set hoodie.cleaner.policy.failed.writes to 'LAZY'. Otherwise, concurrent submission operations may trigger a rollback.
DDL Concurrency
When performing DDL operations on the same column concurrently, pay attention to the following:
- Multiple drop operations cannot be performed concurrently on the same column. Only the first operation will succeed, and subsequent attempts will fail with the exception message: "java.lang.UnsupportedOperationException: cannot evolution schema implicitly, the column for which the update operation is performed does not exist."
- When drop, rename, change type, and change comment operations are performed concurrently, the drop operation must be executed last. Otherwise, only the drop and preceding operations will succeed, and any operations scheduled after the drop will fail with the exception message: "java.lang.UnsupportedOperationException: cannot evolution schema implicitly, the column for which the update operation is performed does not exist."
| DDL Operation | add | rename | change type | change comment | drop |
|---|---|---|---|---|---|
| add | Y | Y | Y | Y | Y |
| rename | Y | Y | Y | Y | Y |
| change type | Y | Y | Y | Y | Y |
| change comment | Y | Y | Y | Y | Y |
| drop | Y | Y | Y | Y | N |
DDL and DML Concurrency
| DDL Operation | insert into | update | delete | set/reset |
|---|---|---|---|---|
| add | Y | Y | Y | Y |
| rename | N | N | Y | N |
| change type | N | N | Y | N |
| change comment | Y | Y | Y | Y |
| drop | N | N | Y | N |
Exception message "cannot evolution schema implicitly, actions such as rename, delete, and type change were found" is thrown when unsupported DDL or DML operations are performed concurrently.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot