Skip to content

CNDB-14683: Cherry-pick fix for flaky LogTransactionTest #1870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2025
Merged

Conversation

jkni
Copy link

@jkni jkni commented Jul 14, 2025

What is the issue

This test is flaky. It stresses the log transaction framework by intentionally creating a race between transaction file cleanup and the listing of temporary files. It sometimes throws an exception during canonicalization of a file that has been removed, but this canonicalization is being done by the testing code, not the transaction code, and it does not indicate misbehavior by the log transaction.

What does this PR fix and why was it fixed

Cherry-picks the fix for this in newer apache/cassandra releases. This ignores exceptions due to files not being found during canonicalization.

Test Failure: org.apache.cassandra.db.lifecycle.LogTransactionTest.testGetTemporaryFilesSafeAfterObsoletion-cdc

patch by Jon Meredith; reviewed by Josh McKenzie for CASSANDRA-17286
@jkni jkni added the core-team label Jul 14, 2025
Copy link

github-actions bot commented Jul 14, 2025

Checklist before you submit for review

  • Make sure there is a PR in the CNDB project updating the Converged Cassandra version
  • Use NoSpamLogger for log lines that may appear frequently in the logs
  • Verify test results on Butler
  • Test coverage for new/modified code is > 80%
  • Proper code formatting
  • Proper title for each commit staring with the project-issue number, like CNDB-1234
  • Each commit has a meaningful description
  • Each commit is not very long and contains related changes
  • Renames, moves and reformatting are in distinct commits
  • All new files should contain the DataStax copyright header instead of the Apache License one

Copy link

@cassci-bot
Copy link

✔️ Build ds-cassandra-pr-gate/PR-1870 approved by Butler


Approved by Butler
See build details here

@jkni jkni merged commit 96f7b6c into main Jul 15, 2025
487 of 490 checks passed
@jkni jkni deleted the CNDB-14683 branch July 15, 2025 21:18
driftx pushed a commit that referenced this pull request Jul 24, 2025
### What is the issue
This test is flaky. It stresses the log transaction framework by
intentionally creating a race between transaction file cleanup and the
listing of temporary files. It sometimes throws an exception during
canonicalization of a file that has been removed, but this
canonicalization is being done by the testing code, not the transaction
code, and it does not indicate misbehavior by the log transaction.

### What does this PR fix and why was it fixed
Cherry-picks the fix for this in newer apache/cassandra releases. This
ignores exceptions due to files not being found during canonicalization.

original patch authored by Jon Meredith, reviewed by Josh McKenzie for CASSANDRA-17286
driftx pushed a commit that referenced this pull request Jul 25, 2025
### What is the issue
This test is flaky. It stresses the log transaction framework by
intentionally creating a race between transaction file cleanup and the
listing of temporary files. It sometimes throws an exception during
canonicalization of a file that has been removed, but this
canonicalization is being done by the testing code, not the transaction
code, and it does not indicate misbehavior by the log transaction.

### What does this PR fix and why was it fixed
Cherry-picks the fix for this in newer apache/cassandra releases. This
ignores exceptions due to files not being found during canonicalization.

original patch authored by Jon Meredith, reviewed by Josh McKenzie for CASSANDRA-17286
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants