Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-6445

RandomAccessFile is not closed properly

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.13.3
    • 5.15.0
    • None
    • None

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cshannon Christopher L. Shannon
            kal0ian Kaloyan Spiridonov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment