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 00:43:38 UTC

[GitHub] [ozone] mukul1987 edited a comment on pull request #2520: HDDS-5598. Validate block file length during the first writeChunk

mukul1987 edited a comment on pull request #2520:
URL: https://github.com/apache/ozone/pull/2520#issuecomment-896408659


   Agree to comment from @adoroszlai 
   
       public static boolean validateChunkForOverwrite(File chunkFile,
         ChunkInfo info) {
   
       if (isOverWriteRequested(chunkFile, info)) {
         if (!isOverWritePermitted(info)) {
           LOG.warn("Duplicate write chunk request. Chunk overwrite " +
               "without explicit request. {}", info);
         }
         return true;
       }
       return false;
     }
   
   Apart from logging a warning can we also change it to a precondition to fail the write ?


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