Skip to content

Tolerate concurrent job deletion in integration test teardown - #2720

Merged
johngrimes merged 2 commits into
release/server/3.0.0from
issue/2711
Aug 7, 2026
Merged

Tolerate concurrent job deletion in integration test teardown#2720
johngrimes merged 2 commits into
release/server/3.0.0from
issue/2711

Conversation

@johngrimes

Copy link
Copy Markdown
Member

Resolves #2711.

ExportOperationIT.cleanup swept the jobs directory with FileUtils.cleanDirectory while the server deleted a cancelled job's directory asynchronously, so overlapping deletions failed the teardown intermittently with NoSuchFileException. This adds a teardown helper that treats an entry disappearing mid-cleanup as already cleaned up, and switches ExportOperationIT, JobListIT (which cancels jobs and shares the identical race) and ExportOperationCacheIT (same pattern) over to it.

Cancelling a job deletes its directory asynchronously, so a test
teardown sweeping the jobs directory can race the server and fail
with NoSuchFileException. Provide a cleanup helper that treats a
concurrently deleted entry as already cleaned up.
ExportOperationIT.cleanup raced the server's asynchronous deletion of
a cancelled job's directory, failing intermittently with
NoSuchFileException. Switch the job directory teardowns to the
tolerant cleanup helper. Resolves #2711.
@johngrimes
johngrimes merged commit 90c886e into release/server/3.0.0 Aug 7, 2026
3 of 4 checks passed
@johngrimes
johngrimes deleted the issue/2711 branch August 7, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant