cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruslan usifov <>
Subject Exception when truncate
Date Thu, 17 May 2012 09:57:49 GMT

I have follow situation on our test server:

from cassandra-cli i try to use

truncate purchase_history;

3 times i got:

[default@township_6waves] truncate purchase_history;
        at org.apache.cassandra.thrift.Cassandra$
        at org.apache.cassandra.thrift.Cassandra$Client.recv_truncate(
        at org.apache.cassandra.thrift.Cassandra$Client.truncate(
        at org.apache.cassandra.cli.CliClient.executeTruncate(
        at org.apache.cassandra.cli.CliClient.executeCLIStatement(
        at org.apache.cassandra.cli.CliMain.processStatementInteractive(
        at org.apache.cassandra.cli.CliMain.main(

So this looks that truncate goes very slow and too long, than
rpc_timeout_in_ms: 10000 (this can happens because we have very slow
disck on test machine)

But in in cassandra system log i see follow exception:

ERROR [MutationStage:7022] 2012-05-17 12:19:14,356 (line 139) Fatal exception in thread
Thread[MutationStage:7022,5,main] unable to mkdirs
        at org.apache.cassandra.db.ColumnFamilyStore.snapshotWithoutFlush(
        at org.apache.cassandra.db.ColumnFamilyStore.snapshot(
        at org.apache.cassandra.db.ColumnFamilyStore.truncate(
        at org.apache.cassandra.db.TruncateVerbHandler.doVerb(
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: unable to mkdirs
        at org.apache.cassandra.db.ColumnFamilyStore.snapshotWithoutFlush(
        ... 7 more

Also i see that in snapshort dir already exists
1337242754356-purchase_history directory, so i think that snapshort
names that generate cassandra not uniquely.

PS: We use cassandra 1.0.10 on Ubuntu 10.0.4-LTS

View raw message