szetszwo commented on code in PR #1151:
URL: https://github.com/apache/ratis/pull/1151#discussion_r1761535893
##########
ratis-server/src/main/java/org/apache/ratis/server/storage/SnapshotManager.java:
##########
@@ -62,7 +63,7 @@ public class SnapshotManager {
private final Supplier<File> snapshotDir;
private final Supplier<File> snapshotTmpDir;
private final Function<FileChunkProto, String> getRelativePath;
- private MessageDigest digester;
+ private volatile AtomicReference<MessageDigest> digester;
Review Comment:
@133tosakarin , sorry, I mean that don't use `AtomicReference`, i.e.
```java
private volatile MessageDigest digester;
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]