[
https://issues.apache.org/jira/browse/CASSANDRA-10804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17761772#comment-17761772
]
Stefan Miklosovic commented on CASSANDRA-10804:
-----------------------------------------------
I think I saw this happening in the current trunk / 5.0. But I can not
reproduce it. It seems like it is flaky behavior.
> 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: Local/Compaction
> Environment: Cassandra 2.2.3, Linux, Java 1.8.0U65, dedicated data
> disk
> Reporter: Francisco Madrid
> Priority: Low
> Fix For: 2.2.x, 3.0.x, 3.11.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
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]