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 5C5EB200BAC for ; Wed, 12 Oct 2016 05:44:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5ABFA160AF7; Wed, 12 Oct 2016 03:44:22 +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 A33EE160AE6 for ; Wed, 12 Oct 2016 05:44:21 +0200 (CEST) Received: (qmail 76568 invoked by uid 500); 12 Oct 2016 03:44:20 -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 76533 invoked by uid 99); 12 Oct 2016 03:44:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2016 03:44:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7EB542C4C72 for ; Wed, 12 Oct 2016 03:44:20 +0000 (UTC) Date: Wed, 12 Oct 2016 03:44:20 +0000 (UTC) From: =?utf-8?Q?=E7=BF=9F=E7=8E=89=E5=8B=87_=28JIRA=29?= To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-12776) when memtable flush Statistics thisOffHeap error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Oct 2016 03:44:22 -0000 =E7=BF=9F=E7=8E=89=E5=8B=87 created CASSANDRA-12776: ------------------------------- Summary: when memtable flush Statistics thisOffHeap error Key: CASSANDRA-12776 URL: https://issues.apache.org/jira/browse/CASSANDRA-12776 Project: Cassandra Issue Type: Bug Components: Tools Reporter: =E7=BF=9F=E7=8E=89=E5=8B=87 Priority: Trivial if (largest !=3D null) { float usedOnHeap =3D Memtable.MEMORY_POOL.onHeap.usedRatio(= ); float usedOffHeap =3D Memtable.MEMORY_POOL.offHeap.usedRati= o(); float flushingOnHeap =3D Memtable.MEMORY_POOL.onHeap.reclai= mingRatio(); float flushingOffHeap =3D Memtable.MEMORY_POOL.offHeap.recl= aimingRatio(); float thisOnHeap =3D largest.getAllocator().onHeap().owners= hipRatio(); float thisOffHeap =3D largest.getAllocator().onHeap().owner= shipRatio(); logger.info("Flushing largest {} to free up room. Used tota= l: {}, live: {}, flushing: {}, this: {}", largest.cfs, ratio(usedOnHeap, usedOffHeap), ra= tio(liveOnHeap, liveOffHeap), ratio(flushingOnHeap, flushingOffHeap), ratio(t= hisOnHeap, thisOffHeap)); largest.cfs.switchMemtableIfCurrent(largest); } float thisOffHeap =3D largest.getAllocator().onHeap().ownershipRatio(); should offHeap().ownershipRatio(); -- This message was sent by Atlassian JIRA (v6.3.4#6332)