Skip to content

Commit 86bd520

Browse files
authored
1 parent 763410f commit 86bd520

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

solr/core/src/java/org/apache/solr/cluster/placement/impl/PlacementPluginFactoryLoader.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,12 @@ public static PlacementPluginFactory<?> getDefaultPlacementPluginFactory() {
114114
case "affinity" -> new AffinityPlacementFactory();
115115
case "minimizecores" -> new MinimizeCoresPlacementFactory();
116116
case "random" -> new RandomPlacementFactory();
117-
default -> throw new SolrException(
118-
SolrException.ErrorCode.SERVER_ERROR,
119-
"Invalid value for system property '"
120-
+ PLACEMENTPLUGIN_DEFAULT_SYSPROP
121-
+ "'. Supported values are 'simple', 'random', 'affinity' and 'minimizecores'");
117+
default ->
118+
throw new SolrException(
119+
SolrException.ErrorCode.SERVER_ERROR,
120+
"Invalid value for system property '"
121+
+ PLACEMENTPLUGIN_DEFAULT_SYSPROP
122+
+ "'. Supported values are 'simple', 'random', 'affinity' and 'minimizecores'");
122123
};
123124
} else {
124125
// TODO: Consider making the ootb default AffinityPlacementFactory, see

0 commit comments

Comments
 (0)