[
https://issues.apache.org/jira/browse/ZOOKEEPER-4511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17556245#comment-17556245
]
Ling Mao commented on ZOOKEEPER-4511:
-------------------------------------
URL:
[https://github.com/apache/zookeeper/runs/6961077060?check_suite_focus=true.]
Let's fix this test
> Flaky test: FileTxnSnapLogMetricsTest.testFileTxnSnapLogMetrics
> ---------------------------------------------------------------
>
> Key: ZOOKEEPER-4511
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4511
> Project: ZooKeeper
> Issue Type: Bug
> Components: tests
> Reporter: Kezhu Wang
> Assignee: Kezhu Wang
> Priority: Major
> Labels: pull-request-available
> Time Spent: 50m
> Remaining Estimate: 0h
>
> * https://github.com/kezhuw/zookeeper/runs/5830250287?check_suite_focus=true
> * https://github.com/apache/zookeeper/runs/5759834147?check_suite_focus=true
> {code:none}
> org.opentest4j.AssertionFailedError: expected: <1> but was: <0>
> at
> org.apache.zookeeper.server.persistence.FileTxnSnapLogMetricsTest.testFileTxnSnapLogMetrics(FileTxnSnapLogMetricsTest.java:86)
> {code}
> 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.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)