DarvenDuan opened a new pull request, #23836:
URL: https://github.com/apache/doris/pull/23836

   ## Proposed changes
   
   If Doris schema change job and load job execute in parallel, load job may be 
failed after schema change job finished.
   
   Schema change job will generate a new shadow index for loading new data 
stream and converting history data. After schema change job, FE will delete the 
origin index and its' tablet in fe's meta, and then sends drop tablet task to 
be to drop origin tablet meta and data in BE. But if a load job has not 
finished, which is loading data to both origin tablet and new tablet, it will 
fail due to OLAP_ERR_TABLE_NOT_FOUND.
   
   This PR implements that Doris will not delete tablets of origin index 
immediately when schema change job is finished, but set the tablets' state to 
DECOMMISSION, Doris will delete those tablets later after all transactions on 
those tablets are finished.
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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...@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to