You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jeronimo A Barros (JIRA)" <ji...@apache.org> on 2014/09/29 23:57:34 UTC
[jira] [Updated] (CASSANDRA-8020) nodetool repair on Cassandra
2.1.0 indexed tables returns java exception about creating snapshots
[ https://issues.apache.org/jira/browse/CASSANDRA-8020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeronimo A Barros updated CASSANDRA-8020:
-----------------------------------------
Attachment: system.log.2014-09-29_1127
nodetool repair system.log
> nodetool repair on Cassandra 2.1.0 indexed tables returns java exception about creating snapshots
> -------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-8020
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8020
> Project: Cassandra
> Issue Type: Bug
> Components: Core, Tools
> Environment: Cassandra 2.1.0, Slackware 64bits 14.1, Linux Kernel 3.14.19, JDK build 1.7.0_67-b01, cluster with six nodes, Xeon E3-1230, 32GB RAM
> Reporter: Jeronimo A Barros
> Labels: newbie
> Fix For: 2.1.0
>
> Attachments: system.log.2014-09-29_1127
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Running a nodetool repair on Cassandra 2.1.0 indexed tables returns java exception about creating snapshots:
> Command line:
> {noformat}
> [2014-09-29 11:25:24,945] Repair session 73c0d390-47e4-11e4-ba0f-c7788dc924ec for range (-7298689860784559350,-7297558156602685286] failed with error java.io.IOException: Failed during snapshot creation.
> [2014-09-29 11:25:24,945] Repair command #5 finished
> {noformat}
> Cassandra log:
> {noformat}
> ERROR [Thread-49681] 2014-09-29 11:25:24,945 StorageService.java:2689 - Repair session 73c0d390-47e4-11e4-ba0f-c7788dc924ec for range (-7298689860784559350,-7297558156602685286] failed with error java.io.IOException: Failed during snapshot creation.
> java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.io.IOException: Failed during snapshot creation.
> at java.util.concurrent.FutureTask.report(FutureTask.java:122) [na:1.7.0_67]
> at java.util.concurrent.FutureTask.get(FutureTask.java:188) [na:1.7.0_67]
> at org.apache.cassandra.service.StorageService$4.runMayThrow(StorageService.java:2680) ~[apache-cassandra-2.1.0.jar:2.1.0]
> at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) [apache-cassandra-2.1.0.jar:2.1.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_67]
> at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_67]
> at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
> Caused by: java.lang.RuntimeException: java.io.IOException: Failed during snapshot creation.
> at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-16.0.jar:na]
> at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:32) [apache-cassandra-2.1.0.jar:2.1.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_67]
> at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_67]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_67]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_67]
> ... 1 common frames omitted
> Caused by: java.io.IOException: Failed during snapshot creation.
> at org.apache.cassandra.repair.RepairSession.failedSnapshot(RepairSession.java:344) ~[apache-cassandra-2.1.0.jar:2.1.0]
> at org.apache.cassandra.repair.RepairJob$2.onFailure(RepairJob.java:128) ~[apache-cassandra-2.1.0.jar:2.1.0]
> at com.google.common.util.concurrent.Futures$4.run(Futures.java:1172) ~[guava-16.0.jar:na]
> ... 3 common frames omitted
> {noformat}
> If the index is dropped, the repair returns no error:
> {noformat}
> cqlsh:test> drop INDEX user_pass_idx ;
> root@test:~# nodetool repair test user
> [2014-09-29 11:27:29,668] Starting repair command #6, repairing 743 ranges for keyspace test (seq=true, full=true)
> .
> .
> [2014-09-29 11:28:38,030] Repair session e6d40e10-47e4-11e4-ba0f-c7788dc924ec for range (-7298689860784559350,-7297558156602685286] finished
> [2014-09-29 11:28:38,030] Repair command #6 finished
> {noformat}
> The test table:
> {noformat}
> CREATE TABLE test.user (
> login text PRIMARY KEY,
> password text
> )
> create INDEX user_pass_idx on test.user (password) ;
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)