Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AE687200D0F for ; Fri, 29 Sep 2017 19:06:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ACDA71609ED; Fri, 29 Sep 2017 17:06:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 006C11609BC for ; Fri, 29 Sep 2017 19:06:03 +0200 (CEST) Received: (qmail 22916 invoked by uid 500); 29 Sep 2017 17:06:03 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 22905 invoked by uid 99); 29 Sep 2017 17:06:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Sep 2017 17:06:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7F1081A1F25 for ; Fri, 29 Sep 2017 17:06:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id bR583TfGd2in for ; Fri, 29 Sep 2017 17:06:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 790825F6BE for ; Fri, 29 Sep 2017 17:06:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F32EFE0D49 for ; Fri, 29 Sep 2017 17:06:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A1C34242B1 for ; Fri, 29 Sep 2017 17:06:00 +0000 (UTC) Date: Fri, 29 Sep 2017 17:06:00 +0000 (UTC) From: "Ariel Weisberg (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-13906) Properly close StreamCompressionInputStream to release any ByteBuf MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 29 Sep 2017 17:06:04 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16186087#comment-16186087 ] Ariel Weisberg edited comment on CASSANDRA-13906 at 9/29/17 5:05 PM: --------------------------------------------------------------------- If you implement Closable it's going to cause warnings any place that doesn't use try with resources. Given the other usages I think what you have done is probably fine although you can still switch to try with resources just for {{StreamCompressionInputStream}}. was (Author: aweisberg): If you implement Closable it's going to cause warnings any place that doesn't use try with resources. Given the other usages I think what you have done is probably fine although you can still switch to try with resources. > Properly close StreamCompressionInputStream to release any ByteBuf > ------------------------------------------------------------------ > > Key: CASSANDRA-13906 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13906 > Project: Cassandra > Issue Type: Bug > Reporter: Jason Brown > Assignee: Jason Brown > > 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): > {code} > 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. > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org