Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
- https://github.com/kezhuw/zookeeper/runs/5830250287?check_suite_focus=true
- https://github.com/apache/zookeeper/runs/5759834147?check_suite_focus=true
org.opentest4j.AssertionFailedError: expected: <1> but was: <0> at org.apache.zookeeper.server.persistence.FileTxnSnapLogMetricsTest.testFileTxnSnapLogMetrics(FileTxnSnapLogMetricsTest.java:86)
This test tries to write some txns to trigger snapshot with remaning txns in txn log. But snapshot taking is asynchronous, thus all txns could be written to snapshot. So in restarting, it is possible that no txns to load after snapshot restored. This will fail assertion.