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 09739200CBC for ; Tue, 20 Jun 2017 23:18:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 077D8160BE1; Tue, 20 Jun 2017 21:18:09 +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 4DEA2160BCC for ; Tue, 20 Jun 2017 23:18:08 +0200 (CEST) Received: (qmail 11419 invoked by uid 500); 20 Jun 2017 21:18:07 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 11407 invoked by uid 99); 20 Jun 2017 21:18:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2017 21:18:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EE011C1416 for ; Tue, 20 Jun 2017 21:18:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id g6MBCIbcVtj0 for ; Tue, 20 Jun 2017 21:18:06 +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 B71ED60E26 for ; Tue, 20 Jun 2017 21:18:04 +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 4DD03E0ADD for ; Tue, 20 Jun 2017 21:18:04 +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 01854240C5 for ; Tue, 20 Jun 2017 21:18:01 +0000 (UTC) Date: Tue, 20 Jun 2017 21:18:01 +0000 (UTC) From: "Jeff Jirsa (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-13624) upgradesstables crashes with OOM when upgrading sstables with lots of range tombstones MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 20 Jun 2017 21:18:09 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16056479#comment-16056479 ] Jeff Jirsa commented on CASSANDRA-13624: ---------------------------------------- Do you get the same OOM with the online version as you do with the offline? > upgradesstables crashes with OOM when upgrading sstables with lots of range tombstones > -------------------------------------------------------------------------------------- > > Key: CASSANDRA-13624 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13624 > Project: Cassandra > Issue Type: Bug > Reporter: Robin Mahony > > CASSANDRA-7953 can lead to range tombstones not properly being compacted. When trying to upgrade from Cassandra 2.0.X to 2.1.X, running upgradesstables (either via nodetool OR the offline version) does not work, as it crashes with OOM. This essentially means if you are running a version of Cassandra 2.0.X for a period of time where lots of range tombstones have been generated; you will be unable to upgrade to Cassandra 2.1.X following the normal procedures. Hence upgrade from 2.0.X to 2.1.X is essentially broken if you hit CASSANDRA-7953. > I hit this while trying to upgrade to Cassandra 2.1.17. > Offline Version: > # sstableupgrade storagegrid s3_usage_delta > Found 15 sstables that need upgrading. > Upgrading SSTableReader(path='/var/local/cassandra/data/0/storagegrid/s3_usage_delta/storagegrid-s3_usage_delta-jb-20230-Data.db') > ERROR 22:38:24,626 LEAK DETECTED: a reference (org.apache.cassandra.utils.concurrent.Ref$State@6821300e) to class org.apache.cassandra.io.sstable.SSTableReader$InstanceTidier@244363601:/var/local/cassandra/data/0/storagegrid/s3_usage_delta/storagegrid-s3_usage_delta-ka-79531 was not released before the reference was garbage collected > ERROR 22:38:24,631 LEAK DETECTED: a reference (org.apache.cassandra.utils.concurrent.Ref$State@2891457f) to class org.apache.cassandra.io.sstable.SSTableReader$InstanceTidier@1230033823:/var/local/cassandra/data/0/storagegrid/s3_usage_delta/storagegrid-s3_usage_delta-ka-79532 was not released before the reference was garbage collected > Exception in thread "ScheduledTasks:1" Exception in thread "metrics-meter-tick-thread-2" java.lang.OutOfMemoryError: Java heap space > at java.lang.Class.getName0(Native Method) > at java.lang.Class.getName(Class.java:642) > at java.lang.Throwable.toString(Throwable.java:479) > at java.lang.Throwable.(Throwable.java:311) > at java.lang.Exception.(Exception.java:102) > at java.util.concurrent.ExecutionException.(ExecutionException.java:90) > at java.util.concurrent.FutureTask.report(FutureTask.java:122) > at java.util.concurrent.FutureTask.get(FutureTask.java:192) > at org.apache.cassandra.concurrent.DebuggableThreadPoolExecutor.extractThrowable(DebuggableThreadPoolExecutor.java:246) > at org.apache.cassandra.concurrent.DebuggableThreadPoolExecutor.logExceptionsAfterExecute(DebuggableThreadPoolExecutor.java:210) > at org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.afterExecute(DebuggableScheduledThreadPoolExecutor.java:89) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1150) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > java.lang.OutOfMemoryError: Java heap space > java.lang.OutOfMemoryError: Java heap space > ERROR 22:41:21,080 Error in ThreadPoolExecutor > java.lang.OutOfMemoryError: Java heap space > ERROR 22:41:21,080 JVM state determined to be unstable. Exiting forcefully due to: > java.lang.OutOfMemoryError: Java heap space > root@DC1-SN-10-224-6-066:/var/local/cassandra/data/0 # -- 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