dataroaring opened a new pull request, #9180:
URL: https://github.com/apache/incubator-doris/pull/9180

   …size
   
   For now, saveImage writes data to image.ckpt via an append FileOutputStream,
   when there is a non-zero size file named image.ckpt, a disaster would happen
   due to a corrupt image file. Even worse, fe only keeps the lastest image file
   and removes others.
   
   BTW, image file should be synced to disk.
   
   It is dangerous to only keep the latest image file, because an image file is
   validated when generating the next image file. Then we keep an non validated
   image file but remove validated ones. So I will issue a pr which keeps at 
least
   2 image file.
   
   # Proposed changes
   I have tested the change, so please do not merge now.
   
   ## Problem Summary:
   
   Describe the overview of changes.
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: (Yes/No/I Don't know)
   2. Has unit tests been added: (Yes/No/No Need)
   3. Has document been added or modified: (Yes/No/No Need)
   4. Does it need to update dependencies: (Yes/No)
   5. Are there any changes that cannot be rolled back: (Yes/No)
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to