runzhiwang edited a comment on pull request #1504:
URL: https://github.com/apache/ozone/pull/1504#issuecomment-730379065


   > In additional, one another question:
   > As we know ReplicationManager will also do the replication for the closed 
containers(blocks), but now truncate operation can update the content for this 
state containers. So how do we do the consistency control between this? If we 
are doing truncate operation for one key while this key block container is in 
replication, there is a large possibility this truncate behavior will be failed.
   
   @linyiqun Thanks for review. In this design, we only delete the fully 
truncated block and change the length of partially truncated block in OM, and 
delete the fully truncated block file in datanode. In OM, HA response for 
consistency. In datanode, delete block has already implemented for delete key, 
we can use this logic to keep consistency. For partially truncated block, I do 
not plan to truncate the block file in datanode.


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

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