You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "fsilent (via GitHub)" <gi...@apache.org> on 2023/07/30 15:21:43 UTC

[GitHub] [doris] fsilent commented on issue #22380: [Bug] add md5 check to prevent image files from being damaged when network error packets occur

fsilent commented on issue #22380:
URL: https://github.com/apache/doris/issues/22380#issuecomment-1657199847

   <html>
   <body>
   <!--StartFragment-->
   
   if (!masterImageMD5.equals(newFileMd5)) {
   --
     |   | 133 | +            LOG.error("The Master image md5 is different with copied image md5, fileName is: {}, "
     |   | 134 | +                    + "master md5 is: {}, copied md5 is: {}", masterImageMD5, newFileMd5);
     |   | 135 | +            throw new IOException("The Master image md5 is different with copied image md5, fileName is:"
     |   | 136 | +                + filename + ", master md5 is: " + masterImageMD5 + ", copied md5 is :" + newFileMd5);
     |   | 137 | +        }
     |   | 138 | +        LOG.info("The Master image md5 is same as copied image md5, fileName is :{} , md5 is: {}",
     |   | 139 | +                filename, newFileMd5);
     |   | 140 | +    }
   
   <!--EndFragment-->
   </body>
   </html>


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org