KB Article #181845

"Nothing to repair" error during Cassandra upgrade

Problem

When running "./nodetool repair" as part of the Cassandra upgrade procedure the following errors/warnings are encountered:

Replication factor is 1. No repair is needed for keyspace 'xxxx_xxx_xxx'

Starting repair command #1 (xx_Xxx_Xxxx), repairing keyspace system_traces with repair options (parallelism: parallel, primary range: false, incremental: true, job threads: 1, ColumnFamilies: [], dataCenters: [], hosts: [], # of ranges: 256, pull repair: false, ignore unreplicated keyspaces: false)

Repair command #1 failed with error Nothing to repair for (xxx_Xxxxx_Xxx] in system_traces - aborting

Repair command #1 finished with error

error: Repair job has failed with the error message: [] Repair command #1 failed with error Nothing to repair for (xxx_xxxx] in system_traces - aborting

-- StackTrace --

java.lang.RuntimeException: Repair job has failed with the error message: [] Repair command #1 failed with error Nothing to repair for (] in system_traces - aborting

at org.apache.cassandra.tools.RepairRunner.progress(RepairRunner.java:116)

at org.apache.cassandra.utils.progress.jmx.JMXNotificationProgressListener.handleNotification(JMXNotificationProgressListener.java:77)

at com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.dispatchNotification(ClientNotifForwarder.java:583)

at com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.doRun(ClientNotifForwarder.java:533)

at com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.run(ClientNotifForwarder.java:452)

at com.sun.jmx.remote.internal.ClientNotifForwarder$LinearExecutor$1.run(ClientNotifForwarder.java:108)



Resolution

The following parameter can be used when running the "./nodetool repair" --ignore-unreplicated-keyspaces

Example:

./nodetool repair --ignore-unreplicated-keyspaces