Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 93951 invoked from network); 29 Sep 2010 05:19:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Sep 2010 05:19:50 -0000 Received: (qmail 93925 invoked by uid 500); 29 Sep 2010 05:19:48 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 93820 invoked by uid 500); 29 Sep 2010 05:19:45 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 93812 invoked by uid 99); 29 Sep 2010 05:19:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Sep 2010 05:19:44 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-qy0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Sep 2010 05:19:37 +0000 Received: by qyk2 with SMTP id 2so716816qyk.10 for ; Tue, 28 Sep 2010 22:19:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=3EsZG3Eb9v7eU6ryBbhrg+klWYJ6X6z2GJw2GNPHKOU=; b=s4wqo1wkMy82fPSKU20jVpMKMRkzFLTdc5PKVsNPLaG5UTUlnZsWGUxH8yxlzWydGX lT9qAUxF6GPrUtr8vRQ0YA7whNzb5BePnyMUf+uHDBqWOxR2mmoJFabTKUKzzKubGY9H BiqjuCMrurmeDy16ky9rXawYUD5EDLJg9egJQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=W3Z1Giy8L+REMGbkM+hLyZfw4RzezIuVy4qP40avz7VVjSil+43ey8p+7nCB8vAXUL jqsklw/lx39qfJRXFArTtFZxYCKwZnPBKq2/bPewXPT+8koeRANAp7KXoSXReZYPSphV 1VRqJSPXggiZIiuqK70nRwR8DZ701eLyPmRNU= MIME-Version: 1.0 Received: by 10.220.24.194 with SMTP id w2mr209941vcb.166.1285737556965; Tue, 28 Sep 2010 22:19:16 -0700 (PDT) Received: by 10.220.186.132 with HTTP; Tue, 28 Sep 2010 22:19:16 -0700 (PDT) In-Reply-To: <53310a9c-73a1-efcb-9dd0-f96d3935d07a@me.com> References: <53310a9c-73a1-efcb-9dd0-f96d3935d07a@me.com> Date: Wed, 29 Sep 2010 00:19:16 -0500 Message-ID: Subject: Re: Truncate + Snapshot + Cannot Allocate Memory == Timeout From: Jonathan Ellis To: user Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Sep 28, 2010 at 11:25 PM, Aaron Morton wrote: > 1) Is the memory error just a result of me letting my machine run stupidly > low on memory? No, it's the JVM forking to run ln. Enable overcommit, or get JNA so it does the link w/ native code instead. > 2) Should it have returned an ApplicationError or some such in this case? > The code in ColumnFamilyStore:1368 is catching the IOException from the call > to FileUtils.createHardLink and wrapping it in an IOError. However the code > in TruncateVerbHandler:56 is looking for the IOException. That does sound like a bug. -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com