Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08FC518E2F for ; Wed, 29 Jul 2015 15:06:11 +0000 (UTC) Received: (qmail 96165 invoked by uid 500); 29 Jul 2015 15:06:04 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 96132 invoked by uid 500); 29 Jul 2015 15:06:04 -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 96117 invoked by uid 99); 29 Jul 2015 15:06:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jul 2015 15:06:04 +0000 Date: Wed, 29 Jul 2015 15:06:04 +0000 (UTC) From: "Benedict (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-9918) Introduce extra Ref usage when debugrefcount=true MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Benedict created CASSANDRA-9918: ----------------------------------- Summary: Introduce extra Ref usage when debugrefcount=true Key: CASSANDRA-9918 URL: https://issues.apache.org/jira/browse/CASSANDRA-9918 Project: Cassandra Issue Type: Improvement Components: Core Reporter: Benedict Assignee: Benedict Fix For: 3.0.x To help us in testing catch API misuse, especially resource handling, we can introduce an abstract base class implementing AutoCloseable that under normal circumstances is empty, but when ref count debugging is enabled instantiates a Ref instance that it releases on close. This will let us detect objects we are misusing that we consider too high-traffic for normal systems to have tracked by Refs. Ideally CASSANDRA-9379 will be delivered around the same time, so that this can be enabled on live systems without _much_ negative impact. -- This message was sent by Atlassian JIRA (v6.3.4#6332)