ChenSammi commented on PR #9947:
URL: https://github.com/apache/ozone/pull/9947#issuecomment-4312024705

   @ptlrs , thanks for updating the patch.  I'm sorry that I didn't check the 
difference between OpenAsSecondary vs OpenReadOnly seriously in last comment. 
   
   For this link https://github.com/facebook/rocksdb/wiki/rocksdb-faq, I cannot 
find the obvious advantage that OpenAsSecondary over OpenReadOnly in our 
current DB check case. And OpenAsSecondary is obviously much expensive than 
OpenReadOnly, as it has the capability to catch up with normal read/write DB 
instance, and it requires an extra directory to save it's owner data, which 
needs cleanup on success or failure(which is not covered in this patch yet). If 
don't cleanup, and DN is running for a long time, I'm not sure how much space 
it will consume.  
   
   I believe that disk check operations are good to be simple and quick, not 
resource consuming. 
   @errose28 , do you still think we should change to use OpenAsSecondary, or 
OpenReadOnly is better? 


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