amaliujia opened a new pull request #168: URL: https://github.com/apache/incubator-ratis/pull/168
…ted, rename the temp snapshot file to .corrupt. ## What changes were proposed in this pull request? It is possible that snapshot file contains corrupted data, in this case within `installSnapshot`, we can rename the temp snapshot file with `.corrupt` before throwing an exception. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/RATIS-1023 Please replace this section with the link to the Apache JIRA) ## How was this patch tested? unit test ---------------------------------------------------------------- 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]
