Skip to content

Commit 897514e

Browse files
committed
Re-enable custom stages
1 parent b2bdedb commit 897514e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import java.util.Collections;
3737
import java.util.HashSet;
3838
import java.util.List;
39+
import java.util.Locale;
3940
import java.util.Map;
4041
import java.util.Set;
4142
import java.util.concurrent.ConcurrentHashMap;
@@ -728,8 +729,7 @@ private static String stageInEnglish(int nextStage) {
728729
case STAGE_DONE:
729730
return "FINISHING";
730731
default:
731-
throw new SolrException(
732-
SolrException.ErrorCode.SERVER_ERROR, "Unrecognized stage:" + nextStage);
732+
return String.format(Locale.ROOT, "CUSTOM (%s)", nextStage);
733733
}
734734
}
735735

0 commit comments

Comments
 (0)