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

   ### Change Logs
   
   Fix Overwrite error when ingest multiple tables. 
HoodieSparkSqlWriter#tableExists may be modified by multiple threads and cause 
some unexpected behavior. For example, we think the table does not exist after 
overwriting, but `tableExists` is modified by other threads as true so we won't 
init the table and create the meta folder. 
   
   This PR makes `tableExists` a local variable to fix the problem.
   
   ### Impact
   
   Fix Overwrite error when ingesting multiple tables.
   
   ### Risk level (write none, low medium or high below)
   
   low
   
   ### Documentation Update
   
   NONE
   
   ### Contributor's checklist
   
   - [x] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] 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: commits-unsubscr...@hudi.apache.org

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

Reply via email to