cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: Truncate + Snapshot + Cannot Allocate Memory == Timeout
Date Wed, 29 Sep 2010 08:05:09 GMT
Created CASSANDRA-1557 for the error masking. 

Aaron

On 29 Sep 2010, at 18:19, Jonathan Ellis wrote:

> On Tue, Sep 28, 2010 at 11:25 PM, Aaron Morton <aaron@thelastpickle.com> 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


Mime
View raw message