markap14 commented on PR #11613:
URL: https://github.com/apache/nifi/pull/11613#issuecomment-5526319499
[Cursor Grok 4.6] @exceptionfactory The Windows failure was not a
path-separator issue.
`TestStandardContentClaimWriteCache.testFlushWriteCorrectData` left
`FileSystemRepository.read()` streams open, so JUnit could not delete the
`@TempDir` on Windows:
```
[ERROR] TestStandardContentClaimWriteCache.testFlushWriteCorrectData -- Time
elapsed: 2.323 s <<< ERROR!
org.junit.platform.commons.JUnitException: Failed to close extension context
Caused by:
org.junit.jupiter.api.io.TempDirDeletionStrategy$DeletionException: Failed to
delete temp directory ...
Suppressed: java.nio.file.FileSystemException:
...\content-repository-0\1\1788373192815-1: The process cannot access the file
because it is being used by another process
```
I closed those streams with try-with-resources and call `cache.reset()` at
the end of the test. Also merged `main` to clear the conflict in
`StandardProcessGroupTest`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]