cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Petrov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10804) C* keeps compacting a keyspace when no longer exists
Date Thu, 28 Apr 2016 12:28:13 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-10804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15262053#comment-15262053
] 

Alex Petrov commented on CASSANDRA-10804:
-----------------------------------------

I've tried to reproduce it, although every time I kill namespace, compaction reliably interrupts.

Stress fails with {{unconfigured table}}, and all running compactions get killed (if they
were triggered automatically). 
If they were triggered manually, I also get: 

{code}
org.apache.cassandra.db.compaction.CompactionInterruptedException: Compaction interrupted:
Compaction@dca405e0-0d3a-11e6-ae97-6532215414cd(keyspace1, standard1, 39788598/1030343736)bytes
{code}

> C* keeps compacting a keyspace when no longer exists
> ----------------------------------------------------
>
>                 Key: CASSANDRA-10804
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10804
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Compaction
>         Environment: Cassandra 2.2.3, Linux, Java 1.8.0U65, dedicated data disk
>            Reporter: Francisco Madrid
>            Priority: Minor
>             Fix For: 2.2.x, 3.0.x, 3.x
>
>
> Testing a 4 node cassandra cluster, I ran the C* stress tool but it failed with:
> {code}
> java.util.NoSuchElementException
>    at org.apache.cassandra.stress.Operation.error(Operation.java:216)
>    at org.apache.cassandra.stress.Operation.timeWithRetry(Operation.java:188)
>    at org.apache.cassandra.stress.operations.userdefined.SchemaQuery.run(SchemaQuery.java:156)
>    at org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:309)
> java.io.IOException: Operation x10 on key(s) [E>I#;+: Error executing: (NoSuchElementException)
> {code}
> I noticed that a compaction was running quite a time afterwards and it didn't seem to
go on and stayed at 0%: 
> {code}
> # ./bin/nodetool compactionstats
> pending tasks: 1
>                                      id   compaction type   keyspace   table   completed
       total    unit   progress
>    6bf4dbc0-990a-11e5-a703-cd0c425c8a88        Compaction       test   test1        
  0   1873185798   bytes      0,00%
> Active compaction remaining time :   0h01m51s
> {code}
> I dropped the keyspace, but although the keyspace no longer existed the compaction continued:
> {code}
> # ./bin/cqlsh
> [cqlsh 5.0.1 | Cassandra 2.2.3 | CQL spec 3.3.1 | Native protocol v4]
> cqlsh> DROP KEYSPACE test;
> /opt/dsc-cassandra-2.2.3/bin/../lib/cassandra-driver-internal-only-2.7.2.zip/cassandra-driver-2.7.2/cassandra/cluster.py:3331:
DeprecationWarning: ResponseFuture.result timeout argument is deprecated. Specify the request
timeout via Session.execute[_async].
> cqlsh> DESC KEYSPACES;
> system_traces  system_auth  system  system_distributed
> cqlsh> exit
> {code}
> {code}
> # ./bin/nodetool compactionstats
> pending tasks: 1
>                                      id   compaction type   keyspace   table   completed
       total    unit   progress
>    6bf4dbc0-990a-11e5-a703-cd0c425c8a88        Compaction       test   test1        
  0   1873185798   bytes      0,00%
> Active compaction remaining time :   0h01m51s
> {code}
> I checked the data disk and there are no files in the keyspace directory.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message