Skip to content

Commit

Permalink
Merge pull request #467 from gjs29/rr-fix
Browse files Browse the repository at this point in the history
Do not set upper bound for R&R cluster size
  • Loading branch information
germanattanasio authored Oct 21, 2016
2 parents 0e14000 + 56e8fbe commit 2d33b30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public SolrClusterOptions(String clusterName, Integer clusterSize) {
if (clusterSize == null) {
this.clusterSize = FREE_CLUSTER_SIZE;
} else {
Validator.isTrue((clusterSize > 0) && (clusterSize < 8), "clusterSize cannot be lower than 0 or greater than 7");
Validator.isTrue((clusterSize > 0), "clusterSize cannot be lower than 0");
this.clusterSize = clusterSize.toString();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class SolrClusterResizeRequest {
* @param clusterSize the desired cluster size
*/
public SolrClusterResizeRequest(final int clusterSize) {
Validator.isTrue((clusterSize > 0) && (clusterSize < 8), "clusterSize cannot be lower than 0 or greater than 7");
Validator.isTrue((clusterSize > 0), "clusterSize cannot be lower than 0");
this.clusterSize = clusterSize;
}

Expand Down

0 comments on commit 2d33b30

Please sign in to comment.