You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Alfred (Jira)" <ji...@apache.org> on 2020/06/09 08:45:00 UTC

[jira] [Commented] (PDFBOX-4867) Two failing tests in CCITTFactoryTest

    [ https://issues.apache.org/jira/browse/PDFBOX-4867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17129003#comment-17129003 ] 

Alfred commented on PDFBOX-4867:
--------------------------------

Looks like the RandomAccessReadMemoryMappedFile gets closed properly, but the lock is not released.

I can see the fileChannel.close(); line gets executed during the test, but even after that, the file cannot be deleted.
I can deleted manually, from explorer, but only after the JVM ends, but not while the test JVM is still alive.

Don't know how to fix this, can it be a JVM bug?

> Two failing tests in CCITTFactoryTest
> -------------------------------------
>
>                 Key: PDFBOX-4867
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4867
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Alfred
>            Priority: Minor
>
> The tests that fail are: 
>    CCITTFactoryTest.testCreateFromFileLock
>    CCITTFactoryTest.testCreateFromFileLock
> Both are testing that the source TIFF file is not locked by CCITTFactory#createFromFile
> They started failing when RandomAccessReadMemoryMappedFile was introduced, 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org