szetszwo commented on PR #1320:
URL: https://github.com/apache/ratis/pull/1320#issuecomment-3591961585
> createSnapshot(simpleStateMachineStorage, 1, 100, true);
@devabhishekpal , your test creating fake MD5 file is causing exception
```java
2025-11-29 13:43:15,570 [main] WARN impl.SimpleStateMachineStorage
(SimpleStateMachineStorage.java:loadLatestSnapshot(262)) - Failed to
updateLatestSnapshot from
target/test/data/81dc258c/TestRaftStorage/TestRaftStorage.testCreateSnapshot/sm
java.io.IOException: Invalid MD5 file
target/test/data/81dc258c/TestRaftStorage/TestRaftStorage.testCreateSnapshot/sm/snapshot.1_100.md5:
the content "null" does not match the pattern ([0-9a-f]{32}) [ *](.+)
at
org.apache.ratis.util.MD5FileUtil.lambda$readStoredMd5ForFile$0(MD5FileUtil.java:99)
at java.base/java.util.Optional.orElseThrow(Optional.java:408)
at
org.apache.ratis.util.MD5FileUtil.readStoredMd5ForFile(MD5FileUtil.java:98)
at
org.apache.ratis.statemachine.impl.SimpleStateMachineStorage.findLatestSnapshot(SimpleStateMachineStorage.java:223)
at
org.apache.ratis.statemachine.impl.SimpleStateMachineStorage.loadLatestSnapshot(SimpleStateMachineStorage.java:258)
at
org.apache.ratis.server.storage.TestRaftStorage.testCreateSnapshot(TestRaftStorage.java:101)
```
--
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]