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

Properly close StreamCompressionInputStream to release any ByteBuf

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0-alpha1, 4.0
    • None
    • None
    • Normal

    Description

      When running dtests for trunk (4.x) that perform some streaming, sometimes a ByteBuf is not released properly, and we get this error in the logs (causing the dtest to fail):

      ERROR [MessagingService-NettyOutbound-Thread-4-2] 2017-09-26 13:42:37,940 Slf4JLogger.java:176 - LEAK: ByteBuf.release() was not called before it's garbage-collected. Enable advanced leak reporting to find out where the leak occurred. To enable advanced leak reporting, specify the JVM option '-Dio.netty.leakDetection.level=advanced' or call ResourceLeakDetector.setLevel() See http://netty.io/wiki/reference-counted-objects.html for more information.
      

      Attachments

        Activity

          People

            jasobrown Jason Brown
            jasobrown Jason Brown
            Jason Brown
            Ariel Weisberg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: