The GitHub Actions job "Flink CI (beta)" on flink.git/master has failed.
Run started by GitHub user rmetzger (triggered by rmetzger).

Head commit for run:
4e9d5412d3dcd4776b750e8a94ba6e86d2b409c6 / Purushottam Sinha 
<[email protected]>
[FLINK-40567][tests] Avoid @TempDir cleanup race in 
HistoryServerArchiveFetcherTest (#29116)

Each test creates a HistoryServerArchiveFetcher that owns two fixed thread
pools which write archives into the @TempDir, but the fetcher was never
closed - tearDown() only closed the storage. Its executor threads could
therefore still be writing when JUnit deleted the temp directory, failing
the run with "Failed to close extension context" /
"Failed to delete temp directory ... DirectoryNotEmptyException: .../jobs".

Track the fetcher in a field and close it in @AfterEach before the storage,
so ExecutorUtils.gracefulShutdown drains both pools before the @TempDir is
removed. This also removes the same latent thread leak in the other tests.

Generated-by: Claude Code (claude-opus-4-8)

Report URL: https://github.com/apache/flink/actions/runs/34264705035

With regards,
GitHub Actions via GitBox

Reply via email to