[ https://issues.apache.org/jira/browse/CASSANDRA-17804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17579469#comment-17579469 ]
Paulo Motta commented on CASSANDRA-17804: ----------------------------------------- This test makes the following assertions to ensure snapshots of dropped tables are properly expired after a node restart when auto_snapshot_ttl=20s: a) that a snapshot of a dropped table exists after a node restart b) that the snapshot is gone after expiration (20s) This test assumes that the restart will take less than auto_snapshot_ttl=20s. If a restart takes longer than that then the snapshot is cleared as soon as the node starts and the first assertion fails. The trivial fix is to increase auto_snapshot_ttl=60s, in the hope that a restart will never take longer than a minute and the first assertion will never fail. Unfortunately this will make the test longer but a bit more deterministic. * PR: https://github.com/apache/cassandra/pull/1789 * CI: https://ci-cassandra.apache.org/view/patches/job/Cassandra-devbranch/1871/ > AutoSnapshotTtlTest#testAutoSnapshotTTlOnDropAfterRestart fails sporadically > on missing stdout contents > ------------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-17804 > URL: https://issues.apache.org/jira/browse/CASSANDRA-17804 > Project: Cassandra > Issue Type: Bug > Components: Local/Snapshots > Reporter: Caleb Rackliffe > Assignee: Paulo Motta > Priority: Normal > Fix For: 4.1-beta, 4.x > > > See > [https://app.circleci.com/pipelines/github/maedhroz/cassandra/487/workflows/0ad42210-2979-4c5d-a4e8-d8cedf9285a7/jobs/4686/tests#failed-test-0] > > My guess is that in some resource constrained environment, even the first > {{nodeool listsnapshots}} invocation doesn’t have “dropped” in the stdout. In > other words, we skip to the state of the world the last assertion in the test > is checking. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org