danny0405 opened a new pull request, #7522:
URL: https://github.com/apache/hudi/pull/7522

   …dieFlinkWriteClient (#7509)
   
   Different with other write clients, HoodieFlinkWriteClient invokes the 
dataset writing methods(#upsert or #insert) for each batch of new data set in 
the long running task. In current impl, a engine-specific hoodie table would be 
created before performing these actions, and before the table creation, some 
table bootstrapping operations are performed(such as table upgrade/downgrade, 
the metadata table bootstrap). These bootstrapping operations are guarded by a 
trasanction lock.
   
   In Flink, these bootstrapping operations can be avoided because they are all 
performed only once on the coordinator.
   
   The changes:
   
   - Make BaseHoodieWriteClient#doInitTable non abstract, it now only performs 
the bootstrapping operations
   - Add a default impl BaseHoodieWriteClient#initMetadataTable for metadata 
table bootstrap specifically
   - Add a new abstract method for creating engine-specific hoodie table
   
   (cherry picked from commit fd62a1413e74de686935672aec812aacd5c43a63)
   
   ### Change Logs
   
   _Describe context and summary for this change. Highlight if any code was 
copied._
   
   ### Impact
   
   _Describe any public API or user-facing feature change or any performance 
impact._
   
   ### Risk level (write none, low medium or high below)
   
   _If medium or high, explain what verification was done to mitigate the 
risks._
   
   ### Documentation Update
   
   _Describe any necessary documentation update if there is any new feature, 
config, or user-facing change_
   
   - _The config description must be updated if new configs are added or the 
default value of the configs are changed_
   - _Any new feature or user-facing change requires updating the Hudi website. 
Please create a Jira ticket, attach the
     ticket number here and follow the 
[instruction](https://hudi.apache.org/contribute/developer-setup#website) to 
make
     changes to the website._
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


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