Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-6832

File handle leak in StreamWriter.java

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0.7
    • None
    • Windows, 2.0.5, leakdetect patch

    • Low

    Description

      Reference CASSANDRA-6283 where this first came up. nodetool.bat repair -par on 2.0.5 pops up the following stack:

      ERROR [Finalizer] 2014-02-17 09:21:52,922 RandomAccessReader.java (line 399) LEAK finalizer had to clean up
      java.lang.Exception: RAR for C:\var\lib\cassandra\data\Keyspace1\Standard1\Keyspace1-Standard1-jb-41-CRC.db allocated
      at org.apache.cassandra.io.util.RandomAccessReader.<init>(RandomAccessReader.java:66)
      at org.apache.cassandra.io.util.RandomAccessReader.open(RandomAccessReader.java:106)
      at org.apache.cassandra.io.util.RandomAccessReader.open(RandomAccessReader.java:98)
      at org.apache.cassandra.io.util.DataIntegrityMetadata$ChecksumValidator.<init>(DataIntegrityMetadata.java:53)
      at org.apache.cassandra.io.util.DataIntegrityMetadata.checksumValidator(DataIntegrityMetadata.java:40)
      at org.apache.cassandra.streaming.StreamWriter.write(StreamWriter.java:76)
      at org.apache.cassandra.streaming.messages.OutgoingFileMessage$1.serialize(OutgoingFileMessage.java:59)
      at org.apache.cassandra.streaming.messages.OutgoingFileMessage$1.serialize(OutgoingFileMessage.java:42)
      at org.apache.cassandra.streaming.messages.StreamMessage.serialize(StreamMessage.java:45)
      at org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.sendMessage(ConnectionHandler.java:383)
      at org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.run(ConnectionHandler.java:355)
      at java.lang.Thread.run(Thread.java:744)

      This leak doesn't look like it's breaking anything but is still worth fixing.

      Attachments

        Activity

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

          People

            JoshuaMcKenzie Joshua McKenzie Assign to me
            JoshuaMcKenzie Joshua McKenzie
            Joshua McKenzie
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment