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

Stefan Podkowinski commented on CASSANDRA-15142:
------------------------------------------------

* 
[CASSANDRA-15142|https://github.com/spodkowinski/cassandra/tree/CASSANDRA-15142]
* 
[CircleCI|https://circleci.com/workflow-run/45ecd7af-ec77-4090-bf07-278c78e43e30]

> Fix errors on repairing empty keyspace
> --------------------------------------
>
>                 Key: CASSANDRA-15142
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15142
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Consistency/Repair, Tool/nodetool
>            Reporter: Stefan Podkowinski
>            Assignee: Stefan Podkowinski
>            Priority: Normal
>
> Running repairs on empty keyspaces will produce a rather confusing error in 
> trunk:
> {noformat}
> ERROR [Repair-Task:1] 2019-05-24 10:36:20,323 RepairRunnable.java:274 - 
> Repair 014607d0-7dff-11e9-9256-158db058ccc5 failed:
> java.lang.IllegalArgumentException: repair sessions cannot operate on 
> multiple keyspaces
> ▸  at 
> com.google.common.base.Preconditions.checkArgument(Preconditions.java:135)
> ▸  at 
> org.apache.cassandra.service.ActiveRepairService$ParentRepairSession.<init>(ActiveRepairService.java:566)
> ▸  at 
> org.apache.cassandra.service.ActiveRepairService.registerParentRepairSession(ActiveRepairService.java:484)
> ▸  at 
> org.apache.cassandra.service.ActiveRepairService.prepareForRepair(ActiveRepairService.java:395)
> ▸  at 
> org.apache.cassandra.repair.RepairRunnable.runMayThrow(RepairRunnable.java:269)
> ▸  at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
> ▸  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> ▸  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ▸  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> ▸  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> ▸  at 
> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
> ▸  at java.lang.Thread.run(Thread.java:748)
> {noformat}
> Let's ignore empty keyspaces and return a success return status instead.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to