|
@@ -412,7 +412,7 @@ public class RestoreService extends AbstractComponent implements ClusterStateApp
|
|
|
// Make sure that the number of shards is the same. That's the only thing that we cannot change
|
|
|
if (currentIndexMetaData.getNumberOfShards() != snapshotIndexMetaData.getNumberOfShards()) {
|
|
|
throw new SnapshotRestoreException(snapshot, "cannot restore index [" + renamedIndex + "] with [" + currentIndexMetaData.getNumberOfShards() +
|
|
|
- "] shard from snapshot with [" + snapshotIndexMetaData.getNumberOfShards() + "] shards");
|
|
|
+ "] shards from a snapshot of index [" + snapshotIndexMetaData.getIndex().getName() + "] with [" + snapshotIndexMetaData.getNumberOfShards() + "] shards");
|
|
|
}
|
|
|
}
|
|
|
|