[
https://issues.apache.org/jira/browse/RATIS-2158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
yuuka updated RATIS-2158:
-------------------------
Description:
This is a follow-up improvement to issue RATIS-2147 MD5 mismatch when accept
snapshot - ASF JIRA (apache.org).
The pr of 2147: [RATIS-2147. Md5 mismatch when snapshot install by
133tosakarin · Pull Request #1142 · apache/ratis
(github.com)|https://github.com/apache/ratis/pull/1142]
Since snapshot files are not sent frequently and there is not much performance
loss when using a new digester each time, in order to be more secure, the
snapshot sender and receiver should use a new digester each time.
was:
This is a follow-up improvement to issue RATIS-2147 MD5 mismatch when accept
snapshot - ASF JIRA (apache.org).
The pr of 2147: [RATIS-2147. Md5 mismatch when snapshot install by
133tosakarin · Pull Request #1142 · apache/ratis
(github.com)|https://github.com/apache/ratis/pull/1142]
Considering the concurrency safety issues, using volatile key word to
MessageDigest.
> Let the snapshot sender and receiver use a new digester each time
> ------------------------------------------------------------------
>
> Key: RATIS-2158
> URL: https://issues.apache.org/jira/browse/RATIS-2158
> Project: Ratis
> Issue Type: Wish
> Reporter: yuuka
> Priority: Major
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> This is a follow-up improvement to issue RATIS-2147 MD5 mismatch when accept
> snapshot - ASF JIRA (apache.org).
> The pr of 2147: [RATIS-2147. Md5 mismatch when snapshot install by
> 133tosakarin · Pull Request #1142 · apache/ratis
> (github.com)|https://github.com/apache/ratis/pull/1142]
>
> Since snapshot files are not sent frequently and there is not much
> performance loss when using a new digester each time, in order to be more
> secure, the snapshot sender and receiver should use a new digester each time.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)