activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kaloyan Spiridonov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-6445) RandomAccessFile is not closed properly
Date Thu, 29 Sep 2016 07:07:20 GMT
Kaloyan Spiridonov created AMQ-6445:
---------------------------------------

             Summary: RandomAccessFile is not closed properly
                 Key: AMQ-6445
                 URL: https://issues.apache.org/jira/browse/AMQ-6445
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.13.3
            Reporter: Kaloyan Spiridonov
            Priority: Minor


In DiskBenchmark class at 303 line and in Journal class at 290 line there is RandomAccessFile
created. After that this methods are called
XXXXXXX.setLength(size);
XXXXXXX.getChannel().force(true);
XXXXXXX.getChannel().transferTo(0, size, raf.getChannel());. 
If one of them throw an Exception then the stream will not be closed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message