You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/08/11 17:28:07 UTC

[GitHub] [ozone] sadanand48 commented on pull request #2520: HDDS-5598. Validate block file length during the first writeChunk

sadanand48 commented on pull request #2520:
URL: https://github.com/apache/ozone/pull/2520#issuecomment-897013106


   > Apart from logging a warning can we also change it to a precondition to fail the write ?
    
    In the current version of the patch , this check would happen only on enabling a config which I have disabled by default. If the config is turned on , the write would fail if  offset!=length and there are certain scenarios where this can cause an issue observed by unit tests. For example if a datanode receives a writechunk after a container dir is deleted, it would fail the writechunk without marking container unhealthy and the container would still be open (TestContainerStateMachine#testContainerStateMachineFailure) . Need to handle such cases.


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org