Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
When restoring a collection we can pass in the replicationFactor
However while restoring the collection we don't make use of this param and end up using whatever is present as the nrtReplicas key in the state.json
int numNrtReplicas = getInt(message, NRT_REPLICAS, backupCollectionState.getNumNrtReplicas(), 0); if (numNrtReplicas == 0) { numNrtReplicas = getInt(message, REPLICATION_FACTOR, backupCollectionState.getReplicationFactor(), 0); }
The tests didn't catch this as the create collection call from SolrJ sets nrtReplicas = replicationFactor and then we never restore with a different replicationFactor
Attachments
Attachments
Issue Links
- relates to
-
SOLR-11823 Incorrect number of replica calculation when using Restore Collection API
- Closed